mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-13 06:22:07 +00:00
make if-checks for AppendStatusBar consistent with Zandronum implementation
This commit is contained in:
parent
bea4659c08
commit
ed4ef14d31
1 changed files with 2 additions and 2 deletions
|
@ -644,7 +644,7 @@ void SBarInfo::ParseSBarInfo(int lump)
|
||||||
barNum = sc.MustMatchString(StatusBars);
|
barNum = sc.MustMatchString(StatusBars);
|
||||||
}
|
}
|
||||||
// SBARINFO_APPENDSTATUSBAR shouldn't delete the old HUD if it exists.
|
// SBARINFO_APPENDSTATUSBAR shouldn't delete the old HUD if it exists.
|
||||||
if (command != SBARINFO_APPENDSTATUSBAR)
|
if(command != SBARINFO_APPENDSTATUSBAR)
|
||||||
{
|
{
|
||||||
if (this->huds[barNum] != NULL)
|
if (this->huds[barNum] != NULL)
|
||||||
{
|
{
|
||||||
|
@ -652,7 +652,7 @@ void SBarInfo::ParseSBarInfo(int lump)
|
||||||
}
|
}
|
||||||
this->huds[barNum] = new SBarInfoMainBlock(this);
|
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]);
|
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