From 4e5e16c15fc1e820649e82d49d684bb5e964a27d Mon Sep 17 00:00:00 2001 From: derek57 Date: Mon, 22 Dec 2014 17:31:47 +0100 Subject: 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(-) (limited to 'src/heretic/sb_bar.c') 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); } //--------------------------------------------------------------------------- -- cgit v1.2.3