From ea5f633fe42c7693e30106a306b376ec169a4809 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Thu, 18 Dec 2014 10:53:49 +0100 Subject: fix a bug that causes monsters to become partly invisible when walking inside liquids like water -- on big-endian systems Originally reported by Ronald Lasmanowicz and fixed in his wii-hexen port: https://code.google.com/p/wii-hexen/source/detail?r=17 --- src/hexen/r_things.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hexen') diff --git a/src/hexen/r_things.c b/src/hexen/r_things.c index 7a05651a..aae6dc60 100644 --- a/src/hexen/r_things.c +++ b/src/hexen/r_things.c @@ -426,7 +426,7 @@ void R_DrawVisSprite(vissprite_t * vis, int x1, int x2) if (vis->floorclip && !vis->psprite) { - sprbotscreen = sprtopscreen + FixedMul(patch->height << FRACBITS, + sprbotscreen = sprtopscreen + FixedMul(SHORT(patch->height) << FRACBITS, spryscale); baseclip = (sprbotscreen - FixedMul(vis->floorclip, spryscale)) >> FRACBITS; -- cgit v1.2.3