Fix one off error.

This commit is contained in:
František Jahoda 2017-11-23 19:52:19 +01:00
parent 069e7a5445
commit 58ab105a3c
1 changed files with 2 additions and 2 deletions

View File

@ -240,8 +240,8 @@ static void drawTile(tic_machine* machine, const tic_tile* buffer, s32 x, s32 y,
{
s32 i;
s32 ix, iy;
ix = a == 1?px:TIC_SPRITESIZE-px;
iy = b == 1?py:TIC_SPRITESIZE-py;
ix = a == 1 ? px : TIC_SPRITESIZE - px - 1;
iy = b == 1 ? py : TIC_SPRITESIZE - py - 1;
if(swap_axis) {
i = ix * TIC_SPRITESIZE + iy;
} else {