mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- fixed bad sprite offsetting in polymost.
This was introduced by incompletely merging the changes for sloped sprites.
This commit is contained in:
parent
e0e6efe0a0
commit
8ce4edc7ad
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue