Fix one off error.
This commit is contained in:
parent
069e7a5445
commit
58ab105a3c
|
@ -240,8 +240,8 @@ static void drawTile(tic_machine* machine, const tic_tile* buffer, s32 x, s32 y,
|
||||||
{
|
{
|
||||||
s32 i;
|
s32 i;
|
||||||
s32 ix, iy;
|
s32 ix, iy;
|
||||||
ix = a == 1?px:TIC_SPRITESIZE-px;
|
ix = a == 1 ? px : TIC_SPRITESIZE - px - 1;
|
||||||
iy = b == 1?py:TIC_SPRITESIZE-py;
|
iy = b == 1 ? py : TIC_SPRITESIZE - py - 1;
|
||||||
if(swap_axis) {
|
if(swap_axis) {
|
||||||
i = ix * TIC_SPRITESIZE + iy;
|
i = ix * TIC_SPRITESIZE + iy;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue