T_FadeColormap: Fade subtraction error

This commit is contained in:
mazmazz 2018-09-12 11:33:44 -04:00
parent 51a2982226
commit d2f636d5a2
1 changed files with 2 additions and 2 deletions

View File

@ -7533,12 +7533,12 @@ void T_FadeColormap(fadecolormap_t *d)
(dest-src < 0) ? \ (dest-src < 0) ? \
max(\ max(\
min(cur,\ min(cur,\
src + (UINT8)FixedMul(dest-src, factor)),\ src + (INT16)FixedMul(dest-src, factor)),\
dest)\ dest)\
: (dest-src > 0) ? \ : (dest-src > 0) ? \
min(\ min(\
max(cur,\ max(cur,\
src + (UINT8)FixedMul(dest-src, factor)),\ src + (INT16)FixedMul(dest-src, factor)),\
dest)\ dest)\
: \ : \
dest\ dest\