Browse files

reset the deathmatch variable when loading a savegame from the menu

Else, when loading a savegame while a deathmatch demo plays in the demo
loop (I am looking at you, AV.WAD), the engine assumes the loaded game is
a deathmatch as well and applies deathmatch rules, i.e. the FRAG widget
in the status bar and respawning from deathmatch spots.

Thanks carburetor and Dwaze for noticing\!
  • Loading branch information...
fabiangreffrath committed Jul 7, 2018
1 parent 2f128b0 commit dc6ba906cde9961d13e222b2ffc0f69c5961b281
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/doom/g_game.c
@@ -1887,7 +1887,9 @@ void G_DoLoadGame (void)
// cheat codes and other single player only specifics.
if (startloadgame == -1)
+ netdemo = false;
netgame = false;
+ deathmatch = false;
gameaction = ga_nothing;

0 comments on commit dc6ba90

Please sign in to comment.