From ed4ef14d3196dced952d047117e4374c9cd249e2 Mon Sep 17 00:00:00 2001 From: BinarryCode <53833277+BinarryCode@users.noreply.github.com> Date: Sun, 24 Nov 2024 13:10:21 -0800 Subject: [PATCH] make if-checks for AppendStatusBar consistent with Zandronum implementation --- src/g_statusbar/sbarinfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/g_statusbar/sbarinfo.cpp b/src/g_statusbar/sbarinfo.cpp index f84440ac9e..82aba42631 100644 --- a/src/g_statusbar/sbarinfo.cpp +++ b/src/g_statusbar/sbarinfo.cpp @@ -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]); }