Apply Baker's fix for cross-map demo playback (http://forums.inside3d.com/viewtopic.php?f=3&t=2397).

With that alone, the console would come down and slide up when the map changes in a demo.
I added a SCR_BeginLoadingPlaque() call in CL_ParseServerInfo, only done during demo playback, which shows the loading plaque and prevents the console from appearing and sliding up.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@976 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Eric Wasylishen 2014-08-25 02:55:25 +00:00
parent 526f90d69b
commit a7bf2f59a4
2 changed files with 9 additions and 0 deletions

View File

@ -261,6 +261,12 @@ void CL_ParseServerInfo (void)
char sound_precache[MAX_SOUNDS][MAX_QPATH]; char sound_precache[MAX_SOUNDS][MAX_QPATH];
Con_DPrintf ("Serverinfo packet received.\n"); Con_DPrintf ("Serverinfo packet received.\n");
// ericw -- bring up loading plaque for map changes within a demo.
// it will be hidden in CL_SignonReply.
if (cls.demoplayback)
SCR_BeginLoadingPlaque();
// //
// wipe the client_state_t struct // wipe the client_state_t struct
// //

View File

@ -972,6 +972,9 @@ This is sent just before a server changes levels
*/ */
void Host_Reconnect_f (void) void Host_Reconnect_f (void)
{ {
if (cls.demoplayback) // cross-map demo playback fix from Baker
return;
SCR_BeginLoadingPlaque (); SCR_BeginLoadingPlaque ();
cls.signon = 0; // need new connection messages cls.signon = 0; // need new connection messages
} }