mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-04 01:41:42 +00:00
Fix Pull Request Review 2346387627
This commit is contained in:
parent
d54a19c7b7
commit
2221bc3a44
1 changed files with 6 additions and 1 deletions
|
@ -490,6 +490,11 @@ void SBarInfo::ParseSBarInfo(int lump)
|
|||
continue;
|
||||
}
|
||||
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))
|
||||
{
|
||||
case SBARINFO_BASE:
|
||||
|
@ -642,7 +647,7 @@ void SBarInfo::ParseSBarInfo(int lump)
|
|||
barNum = sc.MustMatchString(StatusBars);
|
||||
}
|
||||
// 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 (this->huds[barNum] != NULL)
|
||||
|
|
Loading…
Reference in a new issue