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/hexen/f_finale.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/hexen/f_finale.c') diff --git a/src/hexen/f_finale.c b/src/hexen/f_finale.c index c2f69a87..29789de8 100644 --- a/src/hexen/f_finale.c +++ b/src/hexen/f_finale.c @@ -24,6 +24,7 @@ #include "s_sound.h" #include #include "v_video.h" +#include "i_swap.h" // MACROS ------------------------------------------------------------------ @@ -224,12 +225,12 @@ static void TextWrite(void) continue; } 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