From 243c2a6647147cf64f3d6d8ccd0c6541fbb12ef3 Mon Sep 17 00:00:00 2001 From: sezero Date: Sat, 19 Jun 2010 09:00:22 +0000 Subject: [PATCH] * host_cmd.c (Host_Map_f): Do not call IN_Activate() for dedicated servers. (Host_Changelevel_f): Likewise. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@183 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/host_cmd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Quake/host_cmd.c b/Quake/host_cmd.c index 8d6a38e1..24706710 100644 --- a/Quake/host_cmd.c +++ b/Quake/host_cmd.c @@ -813,7 +813,8 @@ void Host_Map_f (void) CL_Disconnect (); Host_ShutdownServer(false); - IN_Activate(); + if (cls.state != ca_dedicated) + IN_Activate(); key_dest = key_game; // remove console or menu SCR_BeginLoadingPlaque (); @@ -874,7 +875,8 @@ void Host_Changelevel_f (void) Host_Error ("cannot find map %s", level); //johnfitz - IN_Activate(); // -- S.A. + if (cls.state != ca_dedicated) + IN_Activate(); // -- S.A. key_dest = key_game; // remove console or menu SV_SaveSpawnparms (); strcpy (level, Cmd_Argv(1));