]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 d5cb5896af55d0020af023d9f3fa8c1548bf76bc..77ffee399c4fedeb0407fa13e89ba42c6244104b 100644 (file)
@@ -1541,6 +1541,10 @@ void CL_ParseServerInfo (void)
 
        // parse gametype
                cl.gametype = MSG_ReadByte ();
 
        // 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 ();
 
        // parse signon message
                str = MSG_ReadString ();