shithub: choc

Download patch

ref: d54947a8c7d66436caa40bca3c95eab714903ea8
parent: 8c643f65caa91c8ec5b2750c72dfd6bda1eecf5b
parent: 4e5e16c15fc1e820649e82d49d684bb5e964a27d
author: Fabian Greffrath <fabian@greffrath.com>
date: Mon Dec 29 03:09:12 EST 2014

Merge pull request #493 from derek57/patch-3

No. 2: even more endianness fixes by myself (Ronald Lasmanowicz)

--- a/src/heretic/sb_bar.c
+++ b/src/heretic/sb_bar.c
@@ -353,7 +353,7 @@
     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;
@@ -360,12 +360,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);
 }
 
 //---------------------------------------------------------------------------