diff options
author | Fabian Greffrath | 2014-12-29 08:09:12 +0100 |
---|---|---|
committer | Fabian Greffrath | 2014-12-29 08:09:12 +0100 |
commit | d54947a8c7d66436caa40bca3c95eab714903ea8 (patch) | |
tree | 805ec889638f66d7707c1ca5f90b568966990e1c /src/heretic/sb_bar.c | |
parent | 8c643f65caa91c8ec5b2750c72dfd6bda1eecf5b (diff) | |
parent | 4e5e16c15fc1e820649e82d49d684bb5e964a27d (diff) | |
download | chocolate-doom-d54947a8c7d66436caa40bca3c95eab714903ea8.tar.gz chocolate-doom-d54947a8c7d66436caa40bca3c95eab714903ea8.tar.bz2 chocolate-doom-d54947a8c7d66436caa40bca3c95eab714903ea8.zip |
Merge pull request #493 from derek57/patch-3
No. 2: even more endianness fixes by myself (Ronald Lasmanowicz)
Diffstat (limited to 'src/heretic/sb_bar.c')
-rw-r--r-- | src/heretic/sb_bar.c | 6 |
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); } //--------------------------------------------------------------------------- |