Fixed teleporting to stolen CP from start zone not showing alert.

This commit is contained in:
shavit 2018-09-14 01:53:57 +03:00
parent e6dc81ef59
commit b473265a3b

View File

@ -1984,17 +1984,10 @@ void TeleportToCheckpoint(int client, int index, bool suppressMessage)
return;
}
bool bInStart = Shavit_InsideZone(client, Zone_Start, -1);
if(bInStart)
if(Shavit_InsideZone(client, Zone_Start, -1))
{
Shavit_StopTimer(client);
}
if(!cpcache[bCPSegmented] || GetClientSerial(client) != cpcache[iCPSerial])
{
Shavit_SetPracticeMode(client, true, !bInStart);
}
any snapshot[TIMERSNAPSHOT_SIZE];
CopyArray(cpcache[aCPSnapshot], snapshot, TIMERSNAPSHOT_SIZE);
@ -2019,6 +2012,11 @@ void TeleportToCheckpoint(int client, int index, bool suppressMessage)
((gI_CheckpointsSettings[client] & CP_ANGLES) > 0 || cpcache[bCPSegmented])? ang:NULL_VECTOR,
vel);
if(!cpcache[bCPSegmented] || GetClientSerial(client) != cpcache[iCPSerial])
{
Shavit_SetPracticeMode(client, true, true);
}
MoveType mt = cpcache[mtCPMoveType];
if(mt == MOVETYPE_LADDER || mt == MOVETYPE_WALK)