Fix operator code formatting
This commit is contained in:
parent
0f60b23b33
commit
7bca5d29d0
|
@ -22,8 +22,8 @@ void LinesSolver::processDataLine(const std::string& line)
|
||||||
|
|
||||||
bool LinesSolver::isInBounds(const Point2& point) const
|
bool LinesSolver::isInBounds(const Point2& point) const
|
||||||
{
|
{
|
||||||
return 0 <= point.y && point.y < lines.size()
|
return 0 <= point.y && point.y < lines.size() &&
|
||||||
&& 0 <= point.x && point.x < lines[point.y].size();
|
0 <= point.x && point.x < lines[point.y].size();
|
||||||
}
|
}
|
||||||
|
|
||||||
char LinesSolver::getPosition(const Point2& point) const
|
char LinesSolver::getPosition(const Point2& point) const
|
||||||
|
|
|
@ -149,9 +149,9 @@ void RedNosedReports::checkLastLevel(const Slope sameSlope, const Slope otherSlo
|
||||||
}
|
}
|
||||||
if (data.mustAwaitFourLevels)
|
if (data.mustAwaitFourLevels)
|
||||||
{
|
{
|
||||||
if (delta <= 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[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)))
|
(0 < sign * (data.levels[2] - data.levels[1]) && sign * (data.levels[2] - data.levels[1]) <= 3)))
|
||||||
{
|
{
|
||||||
// X X X X
|
// X X X X
|
||||||
// first 1 5 3 4 first 8 4 6 5
|
// first 1 5 3 4 first 8 4 6 5
|
||||||
|
|
Loading…
Reference in New Issue