From 8f6bb42a6a71b1f0fff51e1f888810618ccb3118 Mon Sep 17 00:00:00 2001 From: Eukara Date: Sun, 27 Jan 2019 02:01:42 +0000 Subject: [PATCH] Fixed Q3A forgetting it's playing the singleplayer campaign upon map-change git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5391 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_ccmds.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/engine/server/sv_ccmds.c b/engine/server/sv_ccmds.c index a8cb4300b..9c27a915a 100644 --- a/engine/server/sv_ccmds.c +++ b/engine/server/sv_ccmds.c @@ -777,10 +777,13 @@ void SV_Map_f (void) gametype = Cvar_Get("g_gametype", "", CVAR_LATCH|CVAR_SERVERINFO, "Q3 compatability"); // gametype->callback = gtcallback; - if (q3singleplayer) - Cvar_ForceSet(gametype, "2");//singleplayer - else if (gametype->value == 2) - Cvar_ForceSet(gametype, "");//force to ffa deathmatch + + /* map_restart doesn't need to handle gametype changes - eukara */ + if (Q_strcasecmp(Cmd_Argv(0), "map_restart")) + if (q3singleplayer) + Cvar_ForceSet(gametype, "2");//singleplayer + else if (gametype->value == 2) + Cvar_ForceSet(gametype, "");//force to ffa deathmatch } #endif