diff options
author | KikooDX <kikoodx@paranoici.org> | 2022-03-15 22:11:49 +0100 |
---|---|---|
committer | KikooDX <kikoodx@paranoici.org> | 2022-03-15 22:11:49 +0100 |
commit | f006b6d58c2c777d73d50912497f54d8edfdcb75 (patch) | |
tree | 828712163a1610bc97646ec7805648e420c64e15 | |
parent | 139dbb6a013197240597e4633f5c90c6a223f6d1 (diff) | |
download | lzy-f006b6d58c2c777d73d50912497f54d8edfdcb75.tar.gz |
stupid fix
-rw-r--r-- | inc/lzy.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -302,8 +302,8 @@ int LZY_DrawTile(unsigned int id, int x, int y) { x += draw_off_x; y += draw_off_y; - ix = id % tset_width * LZY_TILE_SIZE; - iy = id % tset_height * LZY_TILE_SIZE; + ix = (id % tset_width) * LZY_TILE_SIZE; + iy = (id / tset_width) * LZY_TILE_SIZE; dsubimage(x, y, &LZY_GINT_TILESET, ix, iy, LZY_TILE_SIZE, LZY_TILE_SIZE, DIMAGE_NONE); |