Blocked an exploit that could result in server errors.

This commit is contained in:
shavitush 2017-07-16 21:51:27 +03:00
parent 5f843aeb47
commit 99f89ef82a

View File

@ -1468,6 +1468,11 @@ void SaveCheckpoint(int client, int index)
void TeleportToCheckpoint(int client, int index)
{
if(IsNullVector(gF_Checkpoints[client][index][0]))
{
return;
}
Shavit_SetPracticeMode(client, true, !Shavit_InsideZone(client, Track_Main, Zone_Start));
Shavit_LoadSnapshot(client, gA_CheckpointsSnapshots[client][index]);