- Moved all BorderNeedRefresh and SB_state updating code into separate functions that won't crash if screen is NULL.
SVN r4167 (trunk)
This commit is contained in:
parent
01fed92920
commit
be0845acf1
22 changed files with 85 additions and 45 deletions
|
|
@ -227,7 +227,7 @@ void G_NewInit ()
|
|||
int i;
|
||||
|
||||
G_ClearSnapshots ();
|
||||
SB_state = screen->GetPageCount ();
|
||||
ST_SetNeedRefresh();
|
||||
netgame = false;
|
||||
multiplayer = false;
|
||||
if (demoplayback)
|
||||
|
|
@ -424,7 +424,7 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
|
|||
demoplayback = false;
|
||||
automapactive = false;
|
||||
viewactive = true;
|
||||
BorderNeedRefresh = screen->GetPageCount ();
|
||||
V_SetBorderNeedRefresh();
|
||||
|
||||
//Added by MC: Initialize bots.
|
||||
if (!deathmatch)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue