Skip to content

Commit 17d68d0

Browse files
committed
Review
1 parent f7d77b4 commit 17d68d0

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Client/game_sa/CDamageManagerSA.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,7 @@ void CDamageManagerSA::SetPanelStatus(BYTE bPanel, BYTE bPanelStatus, bool spawn
140140
else
141141
{
142142
// Call CAutomobile::SetPanelDamage to update the vehicle
143-
dwFunction = 0x6B1480;
144-
dwThis = (DWORD)internalEntityInterface;
145-
bool windscreenShatter = bPanel == ePanels::WINDSCREEN_PANEL && breakGlass;
146-
bool quiet = !spawnFlyingComponent;
147-
_asm
148-
{
149-
mov ecx, dwThis
150-
push quiet
151-
push windscreenShatter
152-
push dwPanel
153-
call dwFunction
154-
}
143+
((void(__thiscall*)(CEntitySAInterface*, int, bool, bool))0x6B1480)(internalEntityInterface, dwPanel, bPanel == ePanels::WINDSCREEN_PANEL && breakGlass, !spawnFlyingComponent);
155144
}
156145
}
157146
}

0 commit comments

Comments
 (0)