From 1d8da66c6d6e2f48017b9020125538d3bfa74814 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 4 Sep 2008 06:06:07 +0000 Subject: [PATCH] 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 --- cl_parse.c | 4 ++++ 1 file changed, 4 insertions(+) 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 (); -- 2.39.2