diff options
author | Fabian Greffrath | 2014-12-18 10:53:49 +0100 |
---|---|---|
committer | Fabian Greffrath | 2014-12-18 10:53:49 +0100 |
commit | ea5f633fe42c7693e30106a306b376ec169a4809 (patch) | |
tree | 691c23b49589194236a1b75a5ee0d346dd909632 /src/strife/r_things.c | |
parent | ad3e1a25f971bea771960bb9efee75a277e56e2c (diff) | |
download | chocolate-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/strife/r_things.c')
-rw-r--r-- | src/strife/r_things.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strife/r_things.c b/src/strife/r_things.c index 2acb238c..6d37ca09 100644 --- a/src/strife/r_things.c +++ b/src/strife/r_things.c @@ -470,7 +470,7 @@ R_DrawVisSprite // villsa [STRIFE] clip sprite's feet if needed if(vis->mobjflags & MF_FEETCLIPPED) { - sprbotscreen = sprtopscreen + FixedMul(spryscale, patch->height << FRACBITS); + sprbotscreen = sprtopscreen + FixedMul(spryscale, SHORT(patch->height) << FRACBITS); clip = (sprbotscreen - FixedMul(10*FRACUNIT, spryscale)) >> FRACBITS; } else |