mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 02:18: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,
|
ArrayList:aCPFrames,
|
||||||
bool:bCPSegmented,
|
bool:bCPSegmented,
|
||||||
iCPSerial,
|
iCPSerial,
|
||||||
|
bool:bCPPractice,
|
||||||
iCPGroundEntity,
|
iCPGroundEntity,
|
||||||
PCPCACHE_SIZE
|
PCPCACHE_SIZE
|
||||||
}
|
}
|
||||||
@ -1914,6 +1915,7 @@ bool SaveCheckpoint(int client, int index, bool overflow = false)
|
|||||||
}
|
}
|
||||||
|
|
||||||
cpcache[iCPSerial] = GetClientSerial(target);
|
cpcache[iCPSerial] = GetClientSerial(target);
|
||||||
|
cpcache[bCPPractice] = Shavit_IsPracticeMode(target);
|
||||||
|
|
||||||
if(overflow)
|
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,
|
((gI_CheckpointsSettings[client] & CP_ANGLES) > 0 || cpcache[bCPSegmented])? ang:NULL_VECTOR,
|
||||||
vel);
|
vel);
|
||||||
|
|
||||||
if(!cpcache[bCPSegmented] || GetClientSerial(client) != cpcache[iCPSerial])
|
if(cpcache[bCPPractice] || !cpcache[bCPSegmented] || GetClientSerial(client) != cpcache[iCPSerial])
|
||||||
{
|
{
|
||||||
Shavit_SetPracticeMode(client, true, true);
|
Shavit_SetPracticeMode(client, true, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user