mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-04 01:41:42 +00:00
make if-checks for AppendStatusBar consistent with Zandronum implementation
This commit is contained in:
parent
9ba831907f
commit
5576e66670
1 changed files with 2 additions and 2 deletions
|
@ -644,7 +644,7 @@ void SBarInfo::ParseSBarInfo(int lump)
|
|||
barNum = sc.MustMatchString(StatusBars);
|
||||
}
|
||||
// SBARINFO_APPENDSTATUSBAR shouldn't delete the old HUD if it exists.
|
||||
if (command != SBARINFO_APPENDSTATUSBAR)
|
||||
if(command != SBARINFO_APPENDSTATUSBAR)
|
||||
{
|
||||
if (this->huds[barNum] != NULL)
|
||||
{
|
||||
|
@ -652,7 +652,7 @@ void SBarInfo::ParseSBarInfo(int lump)
|
|||
}
|
||||
this->huds[barNum] = new SBarInfoMainBlock(this);
|
||||
}
|
||||
else if (this->huds[barNum] == NULL)
|
||||
else if(this->huds[barNum] == NULL)
|
||||
{
|
||||
sc.ScriptError("Status bar '%s' has not been created and cannot be appended to. Use 'StatusBar' instead.", StatusBars[barNum]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue