Skip to content

Commit

Permalink
- disallow unity iwad status bar adjustment if offset is already set
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Sep 5, 2020
1 parent 6c514a4 commit d1a6831
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/d_main.cpp
Expand Up @@ -2969,7 +2969,8 @@ static void FixUnityStatusBar()
FGameTexture* sbartex = TexMan.FindGameTexture("stbar", ETextureType::MiscPatch);
if (!sbartex)
return;
if (sbartex->GetTexelWidth() > 320)
if (sbartex->GetTexelWidth() > 320 &&
!sbartex->GetTexelLeftOffset(0) && !sbartex->GetTexelTopOffset(0))
{
sbartex->SetOffsets(0, (sbartex->GetTexelWidth() - 320) / 2, 0);
sbartex->SetOffsets(1, (sbartex->GetTexelWidth() - 320) / 2, 0);
Expand Down

0 comments on commit d1a6831

Please sign in to comment.