Skip to content

Commit

Permalink
Fix fireballdestruct for isWorldSpecialPropertyEnabled (Fixes #3214)
Browse files Browse the repository at this point in the history
Co-authored-by: Sam <samr46@users.noreply.github.com>
  • Loading branch information
botder and samr46 authored Oct 21, 2023
1 parent cf46bd8 commit 07983ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Client/game_sa/CGameSA.cpp
Original file line number Diff line number Diff line change
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 07983ac

Please sign in to comment.