1
0
Fork 0
forked from fte/fteqw

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
This commit is contained in:
Eukara 2019-01-27 02:01:42 +00:00
parent 6333ace416
commit 8f6bb42a6a

View file

@ -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