From 4056de0cfea80e37dac50ce1efaaad6fcb481fb0 Mon Sep 17 00:00:00 2001 From: Julian T Date: Thu, 5 Aug 2021 21:35:55 +0200 Subject: Fix bug when rendining on square images --- src/render/coordinator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/coordinator.rs b/src/render/coordinator.rs index e2f825b..4b68115 100644 --- a/src/render/coordinator.rs +++ b/src/render/coordinator.rs @@ -52,7 +52,7 @@ impl Tiler { } // Convert the tile to xy in tilemap - let tile = Vector2i::new_xy(self.next_tile / self.tilemap_size.x, self.next_tile % self.tilemap_size.x); + let tile = Vector2i::new_xy(self.next_tile % self.tilemap_size.x, self.next_tile / self.tilemap_size.x); let tile_index = self.next_tile; self.next_tile += 1; -- cgit v1.2.3