mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[saco] Match CGame::UpdateCheckpoints at 0x100A1F20; DisableMarker/DisableRaceCheckpoint are written out inline
This commit is contained in:
+8
-3
@@ -848,7 +848,7 @@ void CGame::UpdateCheckpoints()
|
||||
}
|
||||
}
|
||||
else if(m_dwCheckpointMarker) {
|
||||
DisableMarker(m_dwCheckpointMarker);
|
||||
ScriptCommand(&disable_marker, m_dwCheckpointMarker);
|
||||
m_dwCheckpointMarker = NULL;
|
||||
}
|
||||
|
||||
@@ -868,8 +868,13 @@ void CGame::UpdateCheckpoints()
|
||||
}
|
||||
}
|
||||
else if(m_dwRaceCheckpointMarker) {
|
||||
DisableMarker(m_dwRaceCheckpointMarker);
|
||||
DisableRaceCheckpoint();
|
||||
ScriptCommand(&disable_marker, m_dwRaceCheckpointMarker);
|
||||
if (m_dwRaceCheckpointHandle)
|
||||
{
|
||||
ScriptCommand(&destroy_racing_checkpoint, m_dwRaceCheckpointHandle);
|
||||
m_dwRaceCheckpointHandle = NULL;
|
||||
}
|
||||
m_bRaceCheckpointsEnabled = false;
|
||||
m_dwRaceCheckpointMarker = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user