From e7abef98528ee0746b72f8089e0ad9e7a01e7755 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Thu, 18 Dec 2014 10:59:47 +0100 Subject: fix some more endianess issues with the width fields in patch_t structs as pointed out necessary by Ronald Lasmanowicz for his Wii ports --- src/heretic/f_finale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/heretic') 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); } } -- cgit v1.2.3