summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorderek572014-12-22 17:31:47 +0100
committerderek572014-12-22 17:31:47 +0100
commit4e5e16c15fc1e820649e82d49d684bb5e964a27d (patch)
treede49cf32e5c2884e12ff38cd03faf303916116da /src
parentba8400b38d8264fe28ec03f772348b288a6ed075 (diff)
downloadchocolate-doom-4e5e16c15fc1e820649e82d49d684bb5e964a27d.tar.gz
chocolate-doom-4e5e16c15fc1e820649e82d49d684bb5e964a27d.tar.bz2
chocolate-doom-4e5e16c15fc1e820649e82d49d684bb5e964a27d.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/heretic/sb_bar.c6
1 files 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);
}
//---------------------------------------------------------------------------