mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
Fixed teleporting to stolen CP from start zone not showing alert.
This commit is contained in:
parent
e6dc81ef59
commit
b473265a3b
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user