- scriptified the SBARINFO wrapper.
This serves no purpose in itself but it removes a native side class from the status bar class hierarchy which allows for better editing options later.
This commit is contained in:
parent
04c2565d7f
commit
1423d5f42a
14 changed files with 232 additions and 152 deletions
|
|
@ -444,7 +444,8 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
|
|||
|
||||
if (bTitleLevel)
|
||||
{
|
||||
StatusBar = new DBaseStatusBar (0);
|
||||
StatusBar = new DBaseStatusBar ();
|
||||
StatusBar->SetSize(0);
|
||||
}
|
||||
else if (cls && gameinfo.gametype == GAME_Doom)
|
||||
{
|
||||
|
|
@ -480,11 +481,12 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
|
|||
}
|
||||
else
|
||||
{
|
||||
StatusBar = new DBaseStatusBar (0);
|
||||
StatusBar = new DBaseStatusBar();
|
||||
StatusBar->SetSize(0);
|
||||
}
|
||||
}
|
||||
GC::WriteBarrier(StatusBar);
|
||||
StatusBar->CallAttachToPlayer (&players[consoleplayer]);
|
||||
StatusBar->AttachToPlayer (&players[consoleplayer]);
|
||||
StatusBar->NewGame ();
|
||||
setsizeneeded = true;
|
||||
|
||||
|
|
@ -1090,7 +1092,7 @@ void G_DoLoadLevel (int position, bool autosave)
|
|||
FBehavior::StaticStartTypedScripts(SCRIPT_Reopen, NULL, false);
|
||||
}
|
||||
|
||||
StatusBar->CallAttachToPlayer (&players[consoleplayer]);
|
||||
StatusBar->AttachToPlayer (&players[consoleplayer]);
|
||||
// unsafe world load
|
||||
E_WorldLoadedUnsafe();
|
||||
// regular world load (savegames are handled internally)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue