custom gun refactor (#1230)

This commit is contained in:
Rxann
2023-04-14 13:02:00 -04:00
committed by GitHub
parent 5a4dc03121
commit 1794d9cad3
3 changed files with 3 additions and 9 deletions

View File

@ -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))
{