diff --git a/src/editing_area/draw.c b/src/editing_area/draw.c index 4981493..cc96203 100644 --- a/src/editing_area/draw.c +++ b/src/editing_area/draw.c @@ -28,7 +28,7 @@ void level_draw(struct Level level, struct Options options, const Rectangle tile_rect = { (int)(tile % options.tileset_width) * options.tile_width, - (int)(tile / options.tileset_height) * + (int)(tile / options.tileset_width) * options.tile_height, options.tile_width, options.tile_height}; const Vector2 tile_pos = {