fix holes in wall lines with a small radius (again)

This commit is contained in:
jacob1 2014-01-08 14:32:59 -05:00
parent 0d51d6bd07
commit aea8402383

View File

@ -1126,7 +1126,7 @@ void Simulation::CreateWallLine(int x1, int y1, int x2, int y2, int rx, int ry,
if (e >= 0.5f) if (e >= 0.5f)
{ {
y += sy; y += sy;
if (!(rx+ry) && ((y1<y2) ? (y<=y2) : (y>=y2))) if ((y1<y2) ? (y<=y2) : (y>=y2))
{ {
if (reverseXY) if (reverseXY)
CreateWalls(y, x, rx, ry, wall, cBrush); CreateWalls(y, x, rx, ry, wall, cBrush);