Fix operator code formatting

This commit is contained in:
Stefan Müller 2025-01-21 14:04:21 +01:00
parent 0f60b23b33
commit 7bca5d29d0
2 changed files with 5 additions and 5 deletions

View File

@ -22,8 +22,8 @@ void LinesSolver::processDataLine(const std::string& line)
bool LinesSolver::isInBounds(const Point2& point) const
{
return 0 <= point.y && point.y < lines.size()
&& 0 <= point.x && point.x < lines[point.y].size();
return 0 <= point.y && point.y < lines.size() &&
0 <= point.x && point.x < lines[point.y].size();
}
char LinesSolver::getPosition(const Point2& point) const

View File

@ -149,9 +149,9 @@ void RedNosedReports::checkLastLevel(const Slope sameSlope, const Slope otherSlo
}
if (data.mustAwaitFourLevels)
{
if (delta <= 3
&& ((0 < sign * (data.levels[2] - data.levels[0]) && sign * (data.levels[2] - data.levels[0]) <= 3)
|| (0 < sign * (data.levels[2] - data.levels[1]) && sign * (data.levels[2] - data.levels[1]) <= 3)))
if (delta <= 3 &&
((0 < sign * (data.levels[2] - data.levels[0]) && sign * (data.levels[2] - data.levels[0]) <= 3) ||
(0 < sign * (data.levels[2] - data.levels[1]) && sign * (data.levels[2] - data.levels[1]) <= 3)))
{
// X X X X
// first 1 5 3 4 first 8 4 6 5