From 3b15e738f822540815da17045849b5c305361bea Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 15 Oct 2006 03:34:05 +0000 Subject: [PATCH] delay map changes until after the renderer is set, rather than setting one as part of the map change. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2410 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_ccmds.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engine/server/sv_ccmds.c b/engine/server/sv_ccmds.c index f653c0b4c..8c33e4f1a 100644 --- a/engine/server/sv_ccmds.c +++ b/engine/server/sv_ccmds.c @@ -446,6 +446,14 @@ void SV_Map_f (void) int i; char *startspot; +#ifndef SERVERONLY + if (qrenderer == -1) + { + Cbuf_AddText(va("wait;map %s\n", Cmd_Args()), Cmd_ExecLevel); + return; + } +#endif + if (Cmd_Argc() != 2 && Cmd_Argc() != 3) { Con_TPrintf (STL_MAPCOMMANDUSAGE);