summaryrefslogtreecommitdiff
path: root/src/hexen/in_lude.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/hexen/in_lude.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/hexen/in_lude.c')
-rw-r--r--src/hexen/in_lude.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hexen/in_lude.c b/src/hexen/in_lude.c
index 8c8b9c77..daabf497 100644
--- a/src/hexen/in_lude.c
+++ b/src/hexen/in_lude.c
@@ -23,6 +23,7 @@
#include "m_misc.h"
#include "p_local.h"
#include "v_video.h"
+#include "i_swap.h"
// MACROS ------------------------------------------------------------------
@@ -600,11 +601,11 @@ static void DrawHubText(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);
}
}