From 11162ad485996f3e9ae4ef3b36788fcf9ed57af4 Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Sat, 2 Sep 2017 21:07:54 +0300 Subject: [PATCH] don't turn off monsters in CTF --- src/game/g_menu.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/g_menu.pas b/src/game/g_menu.pas index 60750aa..85334b3 100644 --- a/src/game/g_menu.pas +++ b/src/game/g_menu.pas @@ -506,12 +506,14 @@ end; procedure ProcSwitchMonstersCustom(Sender: TGUIControl); begin - // don't turn off monsters in DM + // don't turn off monsters in DM + { with TGUIMenu(g_ActiveWindow.GetControl('mCustomGameMenu')) do if TGUISwitch(GetControl('swGameMode')).GetText <> _lc[I_MENU_GAME_TYPE_CTF] then TGUISwitch(GetControl('swMonsters')).ItemIndex := 0 else TGUISwitch(GetControl('swMonsters')).ItemIndex := 1; + } { if TGUISwitch(GetControl('swGameMode')).GetText = _lc[I_MENU_GAME_TYPE_COOP] then TGUISwitch(GetControl('swMonsters')).ItemIndex := 0 @@ -523,11 +525,13 @@ end; procedure ProcSwitchMonstersNet(Sender: TGUIControl); begin // don't turn off monsters in DM + { with TGUIMenu(g_ActiveWindow.GetControl('mNetServerMenu')) do if TGUISwitch(GetControl('swGameMode')).GetText <> _lc[I_MENU_GAME_TYPE_CTF] then TGUISwitch(GetControl('swMonsters')).ItemIndex := 0 else TGUISwitch(GetControl('swMonsters')).ItemIndex := 1; + } { if TGUISwitch(GetControl('swGameMode')).GetText = _lc[I_MENU_GAME_TYPE_COOP] then TGUISwitch(GetControl('swMonsters')).ItemIndex := 0 -- 2.29.2