summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sly/render/tileset.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/sly/render/tileset.scm b/sly/render/tileset.scm
index 6802cbb..e8058e8 100644
--- a/sly/render/tileset.scm
+++ b/sly/render/tileset.scm
@@ -59,7 +59,7 @@ TEXTURE before the first tile begins."
(let* ((tw (texture-width texture))
(th (texture-height texture))
(rows (/ (- tw margin) (+ width spacing)))
- (columns (/ (- tw margin) (+ height spacing))))
+ (columns (/ (- th margin) (+ height spacing))))
(vector-ec (: y rows) (: x columns) (build-tile x y))))
(define* (make-tileset texture width height