diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 53145c686..33f832ddd 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -1126,7 +1126,7 @@ void Simulation::CreateWallLine(int x1, int y1, int x2, int y2, int rx, int ry, if (e >= 0.5f) { y += sy; - if (!(rx+ry) && ((y1=y2))) + if ((y1=y2)) { if (reverseXY) CreateWalls(y, x, rx, ry, wall, cBrush);