From 8ce4edc7ad99c3bfb5a56da736a24f3dacd3f1f8 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 22 Dec 2021 12:17:04 +0100 Subject: [PATCH] - fixed bad sprite offsetting in polymost. This was introduced by incompletely merging the changes for sloped sprites. --- 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 fad935d48..d20dfcc6b 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -2676,8 +2676,8 @@ void polymost_drawsprite(int32_t snum) if ((globalorientation & CSTAT_SPRITE_ALIGNMENT_MASK) != CSTAT_SPRITE_ALIGNMENT_SLAB) // only non-voxel sprites should do this { int const flag = hw_hightile && TileFiles.tiledata[globalpicnum].hiofs.xsize > 0; - off = { (int32_t)tspr->xoffset + (flag ? TileFiles.tiledata[globalpicnum].hiofs.xoffs : tileLeftOffset(globalpicnum)), - (int32_t)tspr->yoffset + (flag ? TileFiles.tiledata[globalpicnum].hiofs.yoffs : tileTopOffset(globalpicnum)) }; + off = { (flag ? TileFiles.tiledata[globalpicnum].hiofs.xoffs : tileLeftOffset(globalpicnum)), + (flag ? TileFiles.tiledata[globalpicnum].hiofs.yoffs : tileTopOffset(globalpicnum)) }; if (!(tspr->cstat2 & CSTAT2_SPRITE_SLOPE)) {