aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKikooDX <kikoodx@paranoici.org>2022-03-15 22:11:49 +0100
committerKikooDX <kikoodx@paranoici.org>2022-03-15 22:11:49 +0100
commitf006b6d58c2c777d73d50912497f54d8edfdcb75 (patch)
tree828712163a1610bc97646ec7805648e420c64e15
parent139dbb6a013197240597e4633f5c90c6a223f6d1 (diff)
downloadlzy-f006b6d58c2c777d73d50912497f54d8edfdcb75.tar.gz
stupid fix
-rw-r--r--inc/lzy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/lzy.h b/inc/lzy.h
index 5b8debf..b78ddb1 100644
--- a/inc/lzy.h
+++ b/inc/lzy.h
@@ -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);