commit 4e5e16c15fc1e820649e82d49d684bb5e964a27d
Author: derek57 <derek57@users.noreply.github.com>
AuthorDate: Mon Dec 22 17:31:47 2014 +0100
Commit: derek57 <derek57@users.noreply.github.com>
CommitDate: Mon Dec 22 17:31:47 2014 +0100
even more endianness fixes by myself (Ronald Lasmanowicz)
I figured this out while porting Chocolate to the Nintendo Wii and also had to change these lines of code.
---
src/heretic/sb_bar.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/heretic/sb_bar.c b/src/heretic/sb_bar.c
index 583b429d..894e0929 100644
--- a/src/heretic/sb_bar.c
+++ b/src/heretic/sb_bar.c
@@ -353,19 +353,19 @@ static void DrBNumber(signed int val, int x, int y)
if (val > 99)
{
patch = W_CacheLumpNum(FontBNumBase + val / 100, PU_CACHE);
- V_DrawShadowedPatch(xpos + 6 - patch->width / 2, y, patch);
+ V_DrawShadowedPatch(xpos + 6 - SHORT(patch->width) / 2, y, patch);
}
val = val % 100;
xpos += 12;
if (val > 9 || oldval > 99)
{
patch = W_CacheLumpNum(FontBNumBase + val / 10, PU_CACHE);
- V_DrawShadowedPatch(xpos + 6 - patch->width / 2, y, patch);
+ V_DrawShadowedPatch(xpos + 6 - SHORT(patch->width) / 2, y, patch);
}
val = val % 10;
xpos += 12;
patch = W_CacheLumpNum(FontBNumBase + val, PU_CACHE);
- V_DrawShadowedPatch(xpos + 6 - patch->width / 2, y, patch);
+ V_DrawShadowedPatch(xpos + 6 - SHORT(patch->width) / 2, y, patch);
}
//---------------------------------------------------------------------------