Skip to content

Commit

Permalink
- rename 'AlwaysCenterStatusBar' to 'FixUnityStatusBar', original nam…
Browse files Browse the repository at this point in the history
…e became a misnomer especially with updates that made it more specific in its use
  • Loading branch information
madame-rachelle committed Sep 8, 2020
1 parent c46dcd0 commit b11298a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/d_iwad.cpp
Expand Up @@ -184,12 +184,12 @@ void FIWadManager::ParseIWadInfo(const char *fn, const char *data, int datasize,
if (sc.Number) iwad->flags |= GI_IGNORETITLEPATCHES;
else iwad->flags &= ~GI_IGNORETITLEPATCHES;
}
else if (sc.Compare("AlwaysCenterStatusBar"))
else if (sc.Compare("FixUnityStatusBar"))
{
sc.MustGetStringName("=");
sc.MustGetNumber();
if (sc.Number) iwad->flags |= GI_ALWAYSCENTERSBAR;
else iwad->flags &= ~GI_ALWAYSCENTERSBAR;
if (sc.Number) iwad->flags |= GI_FIXUNITYSBAR;
else iwad->flags &= ~GI_FIXUNITYSBAR;
}
else if (sc.Compare("Load"))
{
Expand Down
2 changes: 1 addition & 1 deletion src/d_main.cpp
Expand Up @@ -2964,7 +2964,7 @@ static void CheckForHacks(BuildInfo& buildinfo)

static void FixUnityStatusBar()
{
if (gameinfo.flags & GI_ALWAYSCENTERSBAR)
if (gameinfo.flags & GI_FIXUNITYSBAR)
{
FGameTexture* sbartex = TexMan.FindGameTexture("stbar", ETextureType::MiscPatch);

Expand Down
2 changes: 1 addition & 1 deletion src/gamedata/gi.h
Expand Up @@ -50,7 +50,7 @@ enum
GI_COMPATPOLY1 = 0x00000040, // Hexen's MAP36 needs old polyobject drawing
GI_COMPATPOLY2 = 0x00000080, // so does HEXDD's MAP47
GI_IGNORETITLEPATCHES = 0x00000200, // Ignore the map name graphics when not runnning in English language
GI_ALWAYSCENTERSBAR = 0x00000400, // Always center the status bar
GI_FIXUNITYSBAR = 0x00000400, // Center the status bar if it's too wide for a 320 screen
};

#include "gametype.h"
Expand Down
10 changes: 5 additions & 5 deletions wadsrc_extra/static/iwadinfo.txt
Expand Up @@ -351,7 +351,7 @@ IWad
Load = "extras.wad", "soundtrack"
BannerColors = "00 7c 00", "a8 a8 a8"
IgnoreTitlePatches = 1
AlwaysCenterStatusbar = 1
FixUnityStatusBar = 1
}

IWad
Expand All @@ -365,7 +365,7 @@ IWad
MustContain = "SMOOSHED", "ANIMDEFS", "LANGUAGE", "MAPINFO", "ENDOOM", "M_DOOM", "TITLEPIC", "TEXTURES"
BannerColors = "a8 00 00", "a8 a8 a8"
IgnoreTitlePatches = 1
AlwaysCenterStatusbar = 1
FixUnityStatusBar = 1
}

IWad
Expand Down Expand Up @@ -441,7 +441,7 @@ IWad
MustContain = "MAP01", "REDTNT2", "DMAPINFO"
BannerColors = "00 7c 00", "a8 a8 a8"
IgnoreTitlePatches = 1
AlwaysCenterStatusbar = 1
FixUnityStatusBar = 1
}

IWad
Expand Down Expand Up @@ -470,7 +470,7 @@ IWad
MustContain = "MAP01", "CAMO1", "DMAPINFO"
BannerColors = "00 7c 00", "a8 a8 a8"
IgnoreTitlePatches = 1
AlwaysCenterStatusbar = 1
FixUnityStatusBar = 1
}

IWad
Expand Down Expand Up @@ -515,7 +515,7 @@ IWad
BannerColors = "00 7c 00", "a8 a8 a8"
IgnoreTitlePatches = 1
Load = "nerveunity.wad", "extras.wad", "soundtrack"
AlwaysCenterStatusbar = 1
FixUnityStatusBar = 1
}

IWad
Expand Down

0 comments on commit b11298a

Please sign in to comment.