From 97d650b8b3ffb7dbd56dc1d2420cfa423f688fc5 Mon Sep 17 00:00:00 2001 From: fhomolka Date: Sat, 15 Jul 2023 03:38:06 +0200 Subject: [PATCH] Q1: Force unsetting the spectator when the player starts a singleplayer game (#198) Fixes #142 --- engine/client/m_single.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/m_single.c b/engine/client/m_single.c index 7caf330d8..665e33323 100644 --- a/engine/client/m_single.c +++ b/engine/client/m_single.c @@ -518,7 +518,7 @@ void M_Menu_SinglePlayer_f (void) MC_AddCenterPicture(menu, 4, 24, "gfx/ttl_sgl.lmp"); menu->selecteditem = (menuoption_t*) - MC_AddConsoleCommandQBigFont (menu, 72, 32, "New Game", "closemenu;disconnect;maxclients 1;samelevel \"\";deathmatch \"\";set_calc coop ($cl_splitscreen>0);startmap_sp\n"); + MC_AddConsoleCommandQBigFont (menu, 72, 32, "New Game", "closemenu;disconnect;maxclients 1;spectator \"\";samelevel \"\";deathmatch \"\";set_calc coop ($cl_splitscreen>0);startmap_sp\n"); #ifdef SAVEDGAMES MC_AddConsoleCommandQBigFont (menu, 72, 52, "Load Game", "menu_load\n"); MC_AddConsoleCommandQBigFont (menu, 72, 72, "Save Game", "menu_save\n"); @@ -551,7 +551,7 @@ void M_Menu_SinglePlayer_f (void) MC_AddPicture(menu, 72, 32, 232, 64, "gfx/sp_menu.lmp"); - b = MC_AddConsoleCommand (menu, 72, 304, 32, "", "closemenu;disconnect;maxclients 1;samelevel \"\";deathmatch \"\";set_calc coop ($cl_splitscreen>0);startmap_sp\n"); + b = MC_AddConsoleCommand (menu, 72, 304, 32, "", "closemenu;disconnect;maxclients 1;spectator \"\";samelevel \"\";deathmatch \"\";set_calc coop ($cl_splitscreen>0);startmap_sp\n"); menu->selecteditem = (menuoption_t *)b; b->common.width = width; b->common.height = 20;