mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
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:
parent
6333ace416
commit
8f6bb42a6a
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue