From b81a28b334466cf54f093b5c7a9bdebf2261ed21 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 6 Jul 2014 00:10:14 +0000 Subject: [PATCH] Fix MSVC warning caused by r4488 git-svn-id: https://svn.eduke32.com/eduke32@4528 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/hightile.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/include/hightile.h b/polymer/eduke32/build/include/hightile.h index c04c06d0a..c286e79b6 100644 --- a/polymer/eduke32/build/include/hightile.h +++ b/polymer/eduke32/build/include/hightile.h @@ -52,9 +52,9 @@ static inline void hictinting_apply(float *color, int32_t palnum) static inline void hictinting_apply_ub(uint8_t *color, int32_t palnum) { - color[0] *= (float)hictinting[palnum].r / 255.0; - color[1] *= (float)hictinting[palnum].g / 255.0; - color[2] *= (float)hictinting[palnum].b / 255.0; + color[0] = (uint8_t)(color[0] * (float)hictinting[palnum].r / 255.0); + color[1] = (uint8_t)(color[1] * (float)hictinting[palnum].g / 255.0); + color[2] = (uint8_t)(color[2] * (float)hictinting[palnum].b / 255.0); } // texcacheheader cachead.flags bits