diff --git a/scripts/gtav-classes.cmake b/scripts/gtav-classes.cmake index aff27c4b..4799d03f 100644 --- a/scripts/gtav-classes.cmake +++ b/scripts/gtav-classes.cmake @@ -3,7 +3,7 @@ include(FetchContent) FetchContent_Declare( gtav_classes GIT_REPOSITORY https://github.com/Yimura/GTAV-Classes.git - GIT_TAG 760585b6ca9fd60ade494f9226190963d3b743d9 + GIT_TAG 59f3db2ec5c7e4b1992466d656bbb11473eeee26 GIT_PROGRESS TRUE CONFIGURE_COMMAND "" BUILD_COMMAND "" diff --git a/src/backend/looped/vehicle/boost_behavior.cpp b/src/backend/looped/vehicle/boost_behavior.cpp index e712c5b1..50f5bfcf 100644 --- a/src/backend/looped/vehicle/boost_behavior.cpp +++ b/src/backend/looped/vehicle/boost_behavior.cpp @@ -16,7 +16,7 @@ namespace big { if (g.vehicle.boost_behavior == eBoostBehaviors::INSTANT_REFIL) // Instant Refill { - if (is_rocket && (vehicle->m_boost == 0.f || !vehicle->m_boost_state)) + if (is_rocket && (vehicle->m_boost == 0.f || !vehicle->m_boosting)) { vehicle->m_boost_allow_recharge = true; vehicle->m_boost = 10.f; @@ -26,7 +26,7 @@ namespace big vehicle->m_kers_boost = vehicle->m_kers_boost_max; } } - else if (g.vehicle.boost_behavior == eBoostBehaviors::INFINITE_BOOST)// Infinite + else if (g.vehicle.boost_behavior == eBoostBehaviors::INFINITE_BOOST) // Infinite { vehicle->m_boost_allow_recharge = true; vehicle->m_boost = 10.f; @@ -36,7 +36,7 @@ namespace big { if (PAD::IS_CONTROL_PRESSED(0, (int)ControllerInputs::INPUT_VEH_ROCKET_BOOST) || PAD::IS_CONTROL_PRESSED(0, (int)ControllerInputs::INPUT_VEH_FLY_BOOST)) { - if (is_rocket && vehicle->m_boost_state) + if (is_rocket && vehicle->m_boosting) { vehicle->m_boost_allow_recharge = true; vehicle->m_boost = 10.f; @@ -46,9 +46,9 @@ namespace big vehicle->m_kers_boost = vehicle->m_kers_boost_max - 0.01f; } } - else if (is_rocket && vehicle->m_boost_state) + else if (is_rocket && vehicle->m_boosting) { - vehicle->m_boost_state = false; + vehicle->m_boosting = false; } } }