From: Stas'M Date: Wed, 22 Apr 2020 21:38:31 +0000 (+0300) Subject: Game: Assign gsGameFlags where it's missing X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=0ff388bd10878013beb4a2370f4aee6852eaf03e;p=d2df-sdl.git Game: Assign gsGameFlags where it's missing --- diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 7da95bf..9112b7f 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -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);