DEADSOFTWARE

Game: Assign gsGameFlags where it's missing
authorStas'M <x86corez@gmail.com>
Wed, 22 Apr 2020 21:38:31 +0000 (00:38 +0300)
committerStas'M <x86corez@gmail.com>
Wed, 22 Apr 2020 21:38:31 +0000 (00:38 +0300)
src/game/g_game.pas

index 7da95bf0499b2c8b41abe7759460351c2c931314..9112b7f9eb91eb0b6e49942a72038f800961d8d6 100644 (file)
@@ -6610,6 +6610,7 @@ begin
         g_Game_Free();
         with gGameSettings do
         begin
+          Options := gsGameFlags;
           GameMode := g_Game_TextToMode(gsGameMode);
           if gSwitchGameMode <> GM_NONE then
             GameMode := gSwitchGameMode;
@@ -6664,6 +6665,7 @@ begin
         g_Game_Free();
         with gGameSettings do
         begin
+          Options := gsGameFlags;
           GameMode := g_Game_TextToMode(gsGameMode);
           if gSwitchGameMode <> GM_NONE then GameMode := gSwitchGameMode;
           if GameMode = GM_NONE then GameMode := GM_DM;
@@ -7997,8 +7999,7 @@ begin
   // Options:
     s := Find_Param_Value(pars, '-opt');
     if (s = '') then
-      Opt := GAME_OPTION_ALLOWEXIT or GAME_OPTION_BOTVSPLAYER or
-        GAME_OPTION_BOTVSMONSTER or GAME_OPTION_DMKEYS
+      Opt := gsGameFlags
     else
       Opt := StrToIntDef(s, 0);