From f903aac29fb84c3d4c62091c780e66fca5407a26 Mon Sep 17 00:00:00 2001 From: terminx Date: Mon, 23 Apr 2018 06:35:57 +0000 Subject: [PATCH] Fix warning git-svn-id: https://svn.eduke32.com/eduke32@6852 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/polymost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index d6aefd1c8..abcf4bfb1 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -5677,8 +5677,8 @@ void polymost2_drawsprite(int32_t snum) if ((globalorientation & CSTAT_SPRITE_ALIGNMENT) != CSTAT_SPRITE_ALIGNMENT_SLAB) // only non-voxel sprites should do this { int const flag = usehightile && h_xsize[globalpicnum]; - off.x = (int32_t)tspr->xoffset + (flag ? h_xoffs[globalpicnum] : picanm[globalpicnum].xofs); - off.y = (int32_t)tspr->yoffset + (flag ? h_yoffs[globalpicnum] : picanm[globalpicnum].yofs); + off.x = (float)((int32_t)tspr->xoffset + (flag ? h_xoffs[globalpicnum] : picanm[globalpicnum].xofs)); + off.y = (float)((int32_t)tspr->yoffset + (flag ? h_yoffs[globalpicnum] : picanm[globalpicnum].yofs)); } int32_t method = DAMETH_MASK | DAMETH_CLAMPED;