mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
Fix a bug
You still can save a segmetned checkpoint when you are dead via menu
This commit is contained in:
parent
8fb6312b89
commit
daf2783071
@ -2001,8 +2001,10 @@ public int MenuHandler_Checkpoints(Menu menu, MenuAction action, int param1, int
|
||||
|
||||
else
|
||||
{
|
||||
SaveCheckpoint(param1, gA_CheckpointsCache[param1].iCheckpoints + 1, bOverflow);
|
||||
gA_CheckpointsCache[param1].iCurrentCheckpoint = (bOverflow)? iMaxCPs:++gA_CheckpointsCache[param1].iCheckpoints;
|
||||
if(SaveCheckpoint(param1, gA_CheckpointsCache[param1].iCheckpoints + 1, bOverflow)
|
||||
{
|
||||
gA_CheckpointsCache[param1].iCurrentCheckpoint = (bOverflow)? iMaxCPs:++gA_CheckpointsCache[param1].iCheckpoints;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -3478,4 +3480,4 @@ public any Native_OpenCheckpointMenu(Handle plugin, int numParams)
|
||||
{
|
||||
OpenNormalCPMenu(GetNativeCell(1));
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user