Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
FileEX committed Jan 3, 2025
1 parent 401f0de commit 6e48a97
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Client/game_sa/CAutomobileSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void CAutomobileSAInterface::SetPanelDamage(std::uint8_t panelId, bool breakGlas
if (panelId == WINDSCREEN_PANEL)
{
if (breakGlass)
((void(__cdecl*)(CAutomobileSAInterface*))0x71C2B0)(this, false); // Call CGlass::CarWindscreenShatters
((void(__cdecl*)(CAutomobileSAInterface*, bool))0x71C2B0)(this, false); // Call CGlass::CarWindscreenShatters
}

if (spawnFlyingComponent && (panelId != WINDSCREEN_PANEL || (panelId == WINDSCREEN_PANEL && !breakGlass)))
Expand Down
2 changes: 1 addition & 1 deletion Client/game_sa/CDamageManagerSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void CDamageManagerSA::SetPanelStatus(unsigned long ulStatus, bool spawnFlyingCo
}
}

BYTE CDamageManagerSA::GetPanelStatus(BYTE bPanel)
BYTE CDamageManagerSA::GetPanelStatus(BYTE bPanel) const
{
return internalInterface->GetPanelStatus(bPanel);
}
Expand Down
4 changes: 2 additions & 2 deletions Client/game_sa/CDamageManagerSA.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class CDamageManagerSAInterface // 28 bytes due to the way its packed (24 containing actual data)
{
public:
std::uint8_t GetPanelStatus(std::uint8_t panelId) const
std::uint8_t GetPanelStatus(std::uint8_t panelId)
{
if (panelId >= MAX_PANELS)
return 0;
Expand Down Expand Up @@ -57,7 +57,7 @@ class CDamageManagerSA : public CDamageManager
void SetDoorStatus(eDoors bDoor, BYTE bDoorStatus, bool spawnFlyingComponent);
BYTE GetWheelStatus(eWheelPosition bWheel);
void SetWheelStatus(eWheelPosition bWheel, BYTE bTireStatus);
BYTE GetPanelStatus(BYTE bPanel);
BYTE GetPanelStatus(BYTE bPanel) const;
unsigned long GetPanelStatus();
void SetPanelStatus(BYTE bPanel, BYTE bPanelStatus, bool spawnFlyingComponent = true, bool breakGlass = false);
void SetPanelStatus(unsigned long ulStatus, bool spawnFlyingComponent = true, bool breakGlass = false);
Expand Down
2 changes: 1 addition & 1 deletion Client/sdk/game/CDamageManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class CDamageManager
virtual void SetDoorStatus(eDoors bDoor, BYTE bDoorStatus, bool spawnFlyingComponent) = 0;
virtual BYTE GetWheelStatus(eWheelPosition bTire) = 0;
virtual void SetWheelStatus(eWheelPosition bTire, BYTE bTireStatus) = 0;
virtual BYTE GetPanelStatus(BYTE bPanel) = 0;
virtual BYTE GetPanelStatus(BYTE bPanel) const = 0;
virtual unsigned long GetPanelStatus() = 0;
virtual void SetPanelStatus(BYTE bPanel, BYTE bPanelStatus, bool spawnFlyingComponent = true, bool breakGlass = false) = 0;
virtual void SetPanelStatus(unsigned long ulStatus, bool spawnFlyingComponent = true, bool breakGlass = false) = 0;
Expand Down

0 comments on commit 6e48a97

Please sign in to comment.