Skip to content

Commit

Permalink
Fix flashing connect screen, see https://bugzilla.icculus.org/show_bu…
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilo Schulz committed Mar 27, 2008
1 parent ccffb85 commit d79a548
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/client/cl_main.c
Expand Up @@ -778,6 +778,10 @@ void CL_MapLoading( void ) {
Q_strncpyz( cls.servername, "localhost", sizeof(cls.servername) );
cls.state = CA_CHALLENGING; // so the connect screen is drawn
Key_SetCatcher( 0 );
/* Execute next line twice, so that the connect image gets written into both, front- and
* back buffer. This is necessary to prevent a flashing screen on map startup, as the UI gets
* killed for a short time and cannot update the screen. */
SCR_UpdateScreen();
SCR_UpdateScreen();
clc.connectTime = -RETRANSMIT_TIMEOUT;
NET_StringToAdr( cls.servername, &clc.serverAddress);
Expand Down

0 comments on commit d79a548

Please sign in to comment.