From: havoc Date: Thu, 4 Sep 2008 06:06:07 +0000 (+0000) Subject: fix id1 demos to not show deathmatch overlay (they incorrectly contain X-Git-Tag: xonotic-v0.1.0preview~2095 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=1d8da66c6d6e2f48017b9020125538d3bfa74814 fix id1 demos to not show deathmatch overlay (they incorrectly contain gametype deathmatch) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8489 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_parse.c b/cl_parse.c index d5cb5896..77ffee39 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -1541,6 +1541,10 @@ void CL_ParseServerInfo (void) // parse gametype cl.gametype = MSG_ReadByte (); + // the original id singleplayer demos are bugged and contain + // GAME_DEATHMATCH even for singleplayer + if (cl.maxclients == 1 && cls.protocol == PROTOCOL_QUAKE) + cl.gametype = GAME_COOP; // parse signon message str = MSG_ReadString ();