From: divverent Date: Sat, 4 Apr 2009 20:01:58 +0000 (+0000) Subject: fix crash when playing some demos X-Git-Tag: xonotic-v0.1.0preview~1746 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=015837fb9aa2173e77dcaa352c808b39ced5b395;hp=d38fea2082066eb21f06cccd07a4cc847e29ed07;p=xonotic%2Fdarkplaces.git fix crash when playing some demos git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8861 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_parse.c b/cl_parse.c index 80d11efb..7f0704c6 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -992,6 +992,8 @@ void CL_BeginDownloads(qboolean aborteddownload) // if we got here... // curl is done, so let's start with the business + if(!cl.loadbegun) + SCR_PushLoadingScreen(false, "Loading precaches", 1); cl.loadbegun = true; // if already downloading something from the previous level, don't stop it @@ -1214,10 +1216,7 @@ void CL_BeginDownloads_f(void) if(cl.loadbegun) Con_Printf("cl_begindownloads is only valid once per match\n"); else - { - SCR_PushLoadingScreen(false, "Loading precaches", 1); CL_BeginDownloads(false); - } } void CL_StopDownload(int size, int crc) @@ -1448,10 +1447,7 @@ static void CL_SignonReply (void) //MSG_WriteString (&cls.netcon->message, "prespawn"); } else // playing a demo... make sure loading occurs as soon as possible - { - SCR_PushLoadingScreen(false, "Loading precaches", 1); CL_BeginDownloads(false); - } break; case 2: