summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-27 18:15:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-09-28 01:16:24 +0200
commit33ca910fa1661cf9ed3ae1752636111741ab2a79 (patch)
tree19a8ea3d2f6168bda22a423e1c99d936bc03fdec
parentcce06bbbca34c5f951a9967b444ab341207d6db3 (diff)
fix formatting
-rw-r--r--src/path-search.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/path-search.cpp b/src/path-search.cpp
index 00be53cd..2a5d60f4 100644
--- a/src/path-search.cpp
+++ b/src/path-search.cpp
@@ -131,13 +131,13 @@ auto path_search::make_neighbor_tile_bbox(Vector2i coord, Vector2ub own_size, ro
{
case (uint8_t)rotation::N: {
const auto space_NS = iTILE_SIZE2.x() - sz.x() >> 1;
- auto min_N = Vector2i(-half_tile.x() + space_NS, -offset_N );
+ auto min_N = Vector2i(-half_tile.x() + space_NS, -offset_N );
auto max_N = Vector2i(min_N.x() + sz.x(), 0 );
return {min_N, max_N};
}
case (uint8_t)rotation::S: {
const auto space_NS = iTILE_SIZE2.x() - sz.x() >> 1;
- auto min_S = Vector2i(-half_tile.x() + space_NS, 0 );
+ auto min_S = Vector2i(-half_tile.x() + space_NS, 0 );
auto max_S = Vector2i(min_S.x() + sz.x(), offset_N );
return {min_S, max_S};
}
@@ -148,13 +148,13 @@ auto path_search::make_neighbor_tile_bbox(Vector2i coord, Vector2ub own_size, ro
return {min_W, max_W};
}
case (uint8_t)rotation::E: {
- const auto empty_WE = iTILE_SIZE2.y() - sz.y() >> 1;
- auto min_E = Vector2i(0, -half_tile.y() + empty_WE );
+ const auto space_WE = iTILE_SIZE2.y() - sz.y() >> 1;
+ auto min_E = Vector2i(0, -half_tile.y() + space_WE );
auto max_E = Vector2i(offset_W, min_E.y() + sz.y() );
return {min_E, max_E};
}
case (uint8_t)rotation_COUNT: {
- auto min_C = Vector2i(-(sz.x() >> 1), - (sz.y() >> 1) );
+ auto min_C = Vector2i(-(sz.x() >> 1), -(sz.y() >> 1) );
auto max_C = min_C + sz;
return {min_C, max_C};
}