mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 02:18:26 +00:00
Ensured SCPs with deleted replay data are gone.
This commit is contained in:
parent
d9222adaa3
commit
e3c8aaed70
@ -1779,7 +1779,7 @@ bool SaveCheckpoint(int client, int index, bool overflow = false)
|
|||||||
if(gSM_Checkpoints.GetArray(sKey, cpcacheprev[0], view_as<int>(PCPCACHE_SIZE)))
|
if(gSM_Checkpoints.GetArray(sKey, cpcacheprev[0], view_as<int>(PCPCACHE_SIZE)))
|
||||||
{
|
{
|
||||||
delete cpcacheprev[aCPFrames];
|
delete cpcacheprev[aCPFrames];
|
||||||
gSM_Checkpoints.SetArray(sKey, cpcacheprev[0], view_as<int>(PCPCACHE_SIZE));
|
gSM_Checkpoints.Remove(sKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckpointsCache cpcache[PCPCACHE_SIZE];
|
CheckpointsCache cpcache[PCPCACHE_SIZE];
|
||||||
@ -2014,13 +2014,9 @@ void TeleportToCheckpoint(int client, int index, bool suppressMessage)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
Shavit_SetReplayData(client, cpcache[aCPFrames]);
|
Shavit_SetReplayData(client, cpcache[aCPFrames]);
|
||||||
|
|
||||||
if((gI_CheckpointsSettings[client] & CP_ANGLES) > 0)
|
|
||||||
{
|
|
||||||
Shavit_HijackAngles(client, ang[0], ang[1]);
|
Shavit_HijackAngles(client, ang[0], ang[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(!suppressMessage)
|
if(!suppressMessage)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user