mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- fixed GetChunkFrame implementation and one bad GetString call.
Exhumed's status bar is fully working with this.
This commit is contained in:
parent
b71c725e3e
commit
663f330684
2 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
|
|
@ -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.);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue