Commit d9081237 authored by Dino Bollinger's avatar Dino Bollinger Committed by Richard Gobeille
Browse files

Duke3D: Prevent savemapstate during gamemodes EOL, RESTART and DEMO

This prevents accidentally overwriting the wrong map slot.
parent 8e253a92
......@@ -5171,8 +5171,10 @@ badindex:
dispatch();
vInstruction(CON_SAVEMAPSTATE):
G_SaveMapState();
insptr++;
VM_ASSERT((g_player[myconnectindex].ps->gm & (MODE_EOL | MODE_RESTART | MODE_GAME)) == MODE_GAME,
"attempted to save state in invalid gamemode: %d\n", g_player[myconnectindex].ps->gm);
G_SaveMapState();
dispatch();
vInstruction(CON_LOADMAPSTATE):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment