fix id1 demos to not show deathmatch overlay (they incorrectly contain
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 4 Sep 2008 06:06:07 +0000 (06:06 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 4 Sep 2008 06:06:07 +0000 (06:06 +0000)
gametype deathmatch)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8489 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index d5cb589..77ffee3 100644 (file)
@@ -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 ();