- use a separate variable pointing to the current level for the UI code.
UI always runs on the primary level, so this does not need the ability to operate on multiple levels. Additionally, this can later be set to null when running play code so that scope violations result in an abort.
This commit is contained in:
parent
ba114f6f23
commit
4e052f2857
21 changed files with 107 additions and 103 deletions
|
|
@ -153,7 +153,8 @@ extern bool sendpause, sendsave, sendturn180, SendLand;
|
|||
|
||||
void *statcopy; // for statistics driver
|
||||
|
||||
FLevelLocals level; // info about current level
|
||||
FLevelLocals level; // info about current level
|
||||
FLevelLocals *currentUILevel = &level; // level for which to display the user interface.
|
||||
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue