diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-04 03:49:03 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-04 03:49:03 +0100 |
commit | b04f51b8849c17e274e1e50c37ca4ca4933442c3 (patch) | |
tree | 70e9320115b6afeb2b1937830af364c509b40571 | |
parent | c2306af9751ead194b039bc04a6d5713f60c5af4 (diff) |
w
-rw-r--r-- | src/tile-bbox.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tile-bbox.hpp b/src/tile-bbox.hpp index 1f924e9d..95dd2284 100644 --- a/src/tile-bbox.hpp +++ b/src/tile-bbox.hpp @@ -30,16 +30,14 @@ constexpr Pair<Vector2, Vector2> whole_tile(size_t k) constexpr Pair<Vector2, Vector2> wall_north(size_t k, float wall_depth) { - constexpr auto eps = Vector2(0.25f); auto min = tile_start(k) - Vector2{0, wall_depth}; - return { min - eps, min + Vector2{TILE_SIZE2.x(), wall_depth} + eps*2, }; + return { min, min + Vector2{TILE_SIZE2.x(), wall_depth} }; } constexpr Pair<Vector2, Vector2> wall_west(size_t k, float wall_depth) { - constexpr auto eps = Vector2(0.25f); auto min = tile_start(k) - Vector2{wall_depth, 0}; - return { min - eps, min + Vector2{wall_depth, TILE_SIZE2.y()} + eps*2, }; + return { min, min + Vector2{wall_depth, TILE_SIZE2.y()} }; } } // namespace floormat |