diff --git a/src/backend/looped/weapons/cage_gun.cpp b/src/backend/looped/weapons/cage_gun.cpp index f7518063..c4fe0605 100644 --- a/src/backend/looped/weapons/cage_gun.cpp +++ b/src/backend/looped/weapons/cage_gun.cpp @@ -7,9 +7,7 @@ namespace big { void looped::weapons_cage_gun() { - bool bCageGun = g.weapons.custom_weapon == CustomWeapon::CAGE_GUN; - - if (bCageGun) + if (const bool bCageGun = g.weapons.custom_weapon == CustomWeapon::CAGE_GUN; bCageGun) { if (PAD::IS_DISABLED_CONTROL_PRESSED(0, (int)ControllerInputs::INPUT_AIM)) { diff --git a/src/backend/looped/weapons/delete_gun.cpp b/src/backend/looped/weapons/delete_gun.cpp index d832fb95..16f047d3 100644 --- a/src/backend/looped/weapons/delete_gun.cpp +++ b/src/backend/looped/weapons/delete_gun.cpp @@ -8,9 +8,7 @@ namespace big { void looped::weapons_delete_gun() { - bool bCageGun = g.weapons.custom_weapon == CustomWeapon::DELETE_GUN; - - if (bCageGun) + if (const bool bDeleteGun = g.weapons.custom_weapon == CustomWeapon::DELETE_GUN; bDeleteGun) { if (PAD::IS_DISABLED_CONTROL_PRESSED(0, (int)ControllerInputs::INPUT_AIM)) { diff --git a/src/backend/looped/weapons/repair_gun.cpp b/src/backend/looped/weapons/repair_gun.cpp index 2551de35..d685e424 100644 --- a/src/backend/looped/weapons/repair_gun.cpp +++ b/src/backend/looped/weapons/repair_gun.cpp @@ -8,9 +8,7 @@ namespace big { void looped::weapons_repair_gun() { - bool bRepairGun = g.weapons.custom_weapon == CustomWeapon::REPAIR_GUN; - - if (bRepairGun) + if (const bool bRepairGun = g.weapons.custom_weapon == CustomWeapon::REPAIR_GUN; bRepairGun) { if (PAD::IS_DISABLED_CONTROL_PRESSED(0, (int)ControllerInputs::INPUT_AIM)) {