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,10 +2001,12 @@ public int MenuHandler_Checkpoints(Menu menu, MenuAction action, int param1, int
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;
}
}
}
else if(StrEqual(sInfo, "tele"))
{