- fixed GetChunkFrame implementation and one bad GetString call.

Exhumed's status bar is fully working with this.
This commit is contained in:
Christoph Oelckers 2021-05-14 18:28:09 +02:00
parent b71c725e3e
commit 663f330684
2 changed files with 2 additions and 2 deletions

View file

@ -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];

View file

@ -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.);
}
//