diff options
author | Fabian Greffrath | 2014-12-18 10:59:47 +0100 |
---|---|---|
committer | Fabian Greffrath | 2014-12-18 10:59:47 +0100 |
commit | e7abef98528ee0746b72f8089e0ad9e7a01e7755 (patch) | |
tree | b98a873f4a4466d4410ecd15603f4b8f7badba82 /src/heretic | |
parent | ea5f633fe42c7693e30106a306b376ec169a4809 (diff) | |
download | chocolate-doom-e7abef98528ee0746b72f8089e0ad9e7a01e7755.tar.gz chocolate-doom-e7abef98528ee0746b72f8089e0ad9e7a01e7755.tar.bz2 chocolate-doom-e7abef98528ee0746b72f8089e0ad9e7a01e7755.zip |
fix some more endianess issues with the width fields in patch_t structs
as pointed out necessary by Ronald Lasmanowicz for his Wii ports
Diffstat (limited to 'src/heretic')
-rw-r--r-- | src/heretic/f_finale.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/heretic/f_finale.c b/src/heretic/f_finale.c index 14a8f403..ec357d8a 100644 --- a/src/heretic/f_finale.c +++ b/src/heretic/f_finale.c @@ -213,10 +213,10 @@ void F_TextWrite(void) } w = W_CacheLumpNum(FontABaseLump + c - 33, PU_CACHE); - if (cx + w->width > SCREENWIDTH) + if (cx + SHORT(w->width) > SCREENWIDTH) break; V_DrawPatch(cx, cy, w); - cx += w->width; + cx += SHORT(w->width); } } |