diff --git a/engine/breeze/map/map.c b/engine/breeze/map/map.c index a529336..63d793b 100644 --- a/engine/breeze/map/map.c +++ b/engine/breeze/map/map.c @@ -447,9 +447,9 @@ f32 bzTileMapRayCast(BzTileMap *map, Vector2 from, Vector2 to, f32 maxDst, Vecto if (outIntersection) { Vector2 intersection = from; - intersection = Vector2Add(intersection, Vector2Scale(dir, distance)); intersection.x *= map->tileWidth; intersection.y *= map->tileHeight; + intersection = Vector2Add(intersection, Vector2Scale(dir, distance)); *outIntersection = intersection; }