mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[saco] Match CGame::MakeRaceCheckpoint at 0x100A1EA0; DisableRaceCheckpoint is written out inline
This commit is contained in:
+6
-1
@@ -797,7 +797,12 @@ void CGame::SetRaceCheckpointInformation(BYTE byteType, VECTOR *pos, VECTOR *nex
|
||||
|
||||
void CGame::MakeRaceCheckpoint()
|
||||
{
|
||||
DisableRaceCheckpoint();
|
||||
if (m_dwRaceCheckpointHandle)
|
||||
{
|
||||
ScriptCommand(&destroy_racing_checkpoint, m_dwRaceCheckpointHandle);
|
||||
m_dwRaceCheckpointHandle = NULL;
|
||||
}
|
||||
m_bRaceCheckpointsEnabled = false;
|
||||
|
||||
ScriptCommand(&create_racing_checkpoint, (int)m_byteRaceType,
|
||||
m_vecRaceCheckpointPos.X, m_vecRaceCheckpointPos.Y, m_vecRaceCheckpointPos.Z,
|
||||
|
||||
Reference in New Issue
Block a user