Skip to content

Commit

Permalink
Fix #3814 Nitro handling flag bug (#3815)
Browse files Browse the repository at this point in the history
  • Loading branch information
FileEX authored Oct 20, 2024
1 parent 53deb03 commit 64747aa
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Client/game_sa/CVehicleSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1345,16 +1345,20 @@ void CVehicleSA::RecalculateHandling()
continue;

// If NOS is installed we need set the flag
if ((upgradeID >= 1008 && upgradeID <= 1010) && !(uiHandlingFlags & HANDLING_NOS_Flag))
if ((upgradeID >= 1008 && upgradeID <= 1010))
{
uiHandlingFlags |= HANDLING_NOS_Flag;
if (!(uiHandlingFlags & HANDLING_NOS_Flag))
uiHandlingFlags |= HANDLING_NOS_Flag;

nitroInstalled = true;
}

// If hydraulics is installed we need set the flag
if ((upgradeID == 1087) && !(uiHandlingFlags & HANDLING_Hydraulics_Flag))
if ((upgradeID == 1087))
{
uiHandlingFlags |= HANDLING_Hydraulics_Flag;
if (!(uiHandlingFlags & HANDLING_Hydraulics_Flag))
uiHandlingFlags |= HANDLING_Hydraulics_Flag;

hydralicsInstalled = true;
}
}
Expand Down

0 comments on commit 64747aa

Please sign in to comment.