summaryrefslogtreecommitdiff
path: root/src/hexen
diff options
context:
space:
mode:
authorFabian Greffrath2014-12-18 10:53:49 +0100
committerFabian Greffrath2014-12-18 10:53:49 +0100
commitea5f633fe42c7693e30106a306b376ec169a4809 (patch)
tree691c23b49589194236a1b75a5ee0d346dd909632 /src/hexen
parentad3e1a25f971bea771960bb9efee75a277e56e2c (diff)
downloadchocolate-doom-ea5f633fe42c7693e30106a306b376ec169a4809.tar.gz
chocolate-doom-ea5f633fe42c7693e30106a306b376ec169a4809.tar.bz2
chocolate-doom-ea5f633fe42c7693e30106a306b376ec169a4809.zip
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
Diffstat (limited to 'src/hexen')
-rw-r--r--src/hexen/r_things.c2
1 files changed, 1 insertions, 1 deletions
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;