Fix a bug

You still can save a segmetned checkpoint when you are dead via menu
This commit is contained in:
deadw1nter 2020-03-25 15:47:01 +08:00 committed by GitHub
parent 8fb6312b89
commit daf2783071
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2001,8 +2001,10 @@ public int MenuHandler_Checkpoints(Menu menu, MenuAction action, int param1, int
else else
{ {
SaveCheckpoint(param1, gA_CheckpointsCache[param1].iCheckpoints + 1, bOverflow); if(SaveCheckpoint(param1, gA_CheckpointsCache[param1].iCheckpoints + 1, bOverflow)
gA_CheckpointsCache[param1].iCurrentCheckpoint = (bOverflow)? iMaxCPs:++gA_CheckpointsCache[param1].iCheckpoints; {
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)); OpenNormalCPMenu(GetNativeCell(1));
return 0; return 0;
} }