Fix streamline placement

This commit is contained in:
Simon Robertshaw 2012-08-30 01:50:18 +01:00
parent 6dbcd3cc59
commit a9fba97c36

View File

@ -1322,8 +1322,8 @@ int Simulation::CreateWalls(int x, int y, int rx, int ry, int c, int flags, Brus
} }
if (b==WL_STREAM) if (b==WL_STREAM)
{ {
i = x + rx/2; i = x + rx;///2;
j = y + ry/2; j = y + ry;///2;
for (v=-1; v<2; v++) for (v=-1; v<2; v++)
for (u=-1; u<2; u++) for (u=-1; u<2; u++)
if (i+u>=0 && i+u<XRES/CELL && if (i+u>=0 && i+u<XRES/CELL &&