mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 07:31:03 +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];
|
x = ChunkXpos[nFrameBase];
|
||||||
y = ChunkYpos[nFrameBase];
|
y = ChunkYpos[nFrameBase];
|
||||||
auto ttex = tileGetTexture(nFrameBase);
|
auto ttex = tileGetTexture(ChunkPict[nFrameBase]);
|
||||||
if (ttex) tex = ttex->GetID();
|
if (ttex) tex = ttex->GetID();
|
||||||
else tex.SetInvalid();
|
else tex.SetInvalid();
|
||||||
flags = ChunkFlag[nFrameBase];
|
flags = ChunkFlag[nFrameBase];
|
||||||
|
|
|
@ -254,7 +254,7 @@ class ExhumedStatusBar : RazeStatusBar
|
||||||
s += Raze.bsin(PlayClock << 5, -10);
|
s += Raze.bsin(PlayClock << 5, -10);
|
||||||
int intens = clamp(255 - 4 * s, 0, 255);
|
int intens = clamp(255 - 4 * s, 0, 255);
|
||||||
format = String.Format("%d", pp.nHealth >> 3);
|
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