Skip to content

Commit

Permalink
- fixed GetChunkFrame implementation and one bad GetString call.
Browse files Browse the repository at this point in the history
Exhumed's status bar is fully working with this.
  • Loading branch information
coelckers committed May 15, 2021
1 parent b71c725 commit 663f330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/games/exhumed/src/status.cpp
Expand Up @@ -67,7 +67,7 @@ struct ChunkFrame
{
x = ChunkXpos[nFrameBase];
y = ChunkYpos[nFrameBase];
auto ttex = tileGetTexture(nFrameBase);
auto ttex = tileGetTexture(ChunkPict[nFrameBase]);
if (ttex) tex = ttex->GetID();
else tex.SetInvalid();
flags = ChunkFlag[nFrameBase];
Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/games/exhumed/ui/sbar.zs
Expand Up @@ -254,7 +254,7 @@ class ExhumedStatusBar : RazeStatusBar
s += Raze.bsin(PlayClock << 5, -10);
int intens = clamp(255 - 4 * s, 0, 255);
format = String.Format("%d", pp.nHealth >> 3);
DrawString(numberFont, format, (13, -numberFont.mFont.GetHeight() + 3), DI_TEXT_ALIGN_LEFT, intens / 255.);
DrawString(numberFont, format, (13, -numberFont.mFont.GetHeight() + 3), DI_TEXT_ALIGN_LEFT, Font.CR_UNTRANSLATED, intens / 255.);
}

//
Expand Down

0 comments on commit 663f330

Please sign in to comment.