mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-13 06:22:07 +00:00
Fix Pull Request Review 2346387627
This commit is contained in:
parent
27c6d34537
commit
aa5ae5759a
1 changed files with 6 additions and 1 deletions
|
@ -490,6 +490,11 @@ void SBarInfo::ParseSBarInfo(int lump)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
int baselump = -2;
|
int baselump = -2;
|
||||||
|
FString SBarInfoTopLevelString;
|
||||||
|
if(sc.GetString(SBarInfoTopLevelString))
|
||||||
|
{ // Store the string if the next token is a string, and revert scanner state afterwards
|
||||||
|
sc.UnGet();
|
||||||
|
}
|
||||||
switch(sc.MustMatchString(SBarInfoTopLevel))
|
switch(sc.MustMatchString(SBarInfoTopLevel))
|
||||||
{
|
{
|
||||||
case SBARINFO_BASE:
|
case SBARINFO_BASE:
|
||||||
|
@ -642,7 +647,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.
|
||||||
const bool append = (sc.MustMatchString(SBarInfoTopLevel) == SBARINFO_APPENDSTATUSBAR);
|
const bool append = (SBarInfoTopLevelString.CompareNoCase("appendstatusbar") == 0);
|
||||||
if (!append)
|
if (!append)
|
||||||
{
|
{
|
||||||
if (this->huds[barNum] != NULL)
|
if (this->huds[barNum] != NULL)
|
||||||
|
|
Loading…
Reference in a new issue