mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
Fixed exploit that allowed you to escape practice mode in segmented run.
This commit is contained in:
parent
b473265a3b
commit
6d7980c035
@ -54,6 +54,7 @@ enum CheckpointsCache
|
||||
ArrayList:aCPFrames,
|
||||
bool:bCPSegmented,
|
||||
iCPSerial,
|
||||
bool:bCPPractice,
|
||||
iCPGroundEntity,
|
||||
PCPCACHE_SIZE
|
||||
}
|
||||
@ -1914,6 +1915,7 @@ bool SaveCheckpoint(int client, int index, bool overflow = false)
|
||||
}
|
||||
|
||||
cpcache[iCPSerial] = GetClientSerial(target);
|
||||
cpcache[bCPPractice] = Shavit_IsPracticeMode(target);
|
||||
|
||||
if(overflow)
|
||||
{
|
||||
@ -2012,7 +2014,7 @@ 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])
|
||||
if(cpcache[bCPPractice] || !cpcache[bCPSegmented] || GetClientSerial(client) != cpcache[iCPSerial])
|
||||
{
|
||||
Shavit_SetPracticeMode(client, true, true);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user