Skip to content

Commit

Permalink
Synchronize changes from 1.6 master branch [ci skip]
Browse files Browse the repository at this point in the history
07983ac Fix fireballdestruct for isWorldSpecialPropertyEnabled (Fixes #3214)
  • Loading branch information
github-actions[bot] committed Oct 21, 2023
2 parents 5d6cb0c + 07983ac commit ec94d08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Client/game_sa/CGameSA.cpp
Expand Up @@ -726,6 +726,9 @@ void CGameSA::SetBurnFlippedCarsEnabled(bool isEnabled)

void CGameSA::SetFireballDestructEnabled(bool isEnabled)
{
if (isEnabled == m_isFireballDestructEnabled)
return;

if (isEnabled)
{
BYTE originalCodes[7] = {0x81, 0x66, 0x1C, 0x7E, 0xFF, 0xFF, 0xFF};
Expand All @@ -737,6 +740,8 @@ void CGameSA::SetFireballDestructEnabled(bool isEnabled)
MemSet((void*)0x6CCE45, 0x90, 7); // CPlane::BlowUpCar
MemSet((void*)0x6C6E01, 0x90, 7); // CHeli::BlowUpCar
}

m_isFireballDestructEnabled = isEnabled;
}

bool CGameSA::PerformChecks()
Expand Down

0 comments on commit ec94d08

Please sign in to comment.