summaryrefslogtreecommitdiff
path: root/src/heretic/f_finale.c
diff options
context:
space:
mode:
authorFabian Greffrath2014-12-18 10:59:47 +0100
committerFabian Greffrath2014-12-18 10:59:47 +0100
commite7abef98528ee0746b72f8089e0ad9e7a01e7755 (patch)
treeb98a873f4a4466d4410ecd15603f4b8f7badba82 /src/heretic/f_finale.c
parentea5f633fe42c7693e30106a306b376ec169a4809 (diff)
downloadchocolate-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/f_finale.c')
-rw-r--r--src/heretic/f_finale.c4
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);
}
}