diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/render/coordinator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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; |