summaryrefslogtreecommitdiff
path: root/src/simulation
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-10 17:59:05 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-10 17:59:05 (GMT)
commit3499cb3035e64ed91adfbabdfa9b979e9f8e0885 (patch)
tree1036f4f2fab5301981457a07a8a39df5021fe727 /src/simulation
parentcd051924d9ca6d5c39e02111bc311fda9126435e (diff)
downloadpowder-3499cb3035e64ed91adfbabdfa9b979e9f8e0885.zip
powder-3499cb3035e64ed91adfbabdfa9b979e9f8e0885.tar.gz
Wall brush, fixes #63
Diffstat (limited to 'src/simulation')
-rw-r--r--src/simulation/Simulation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index c11bde0..f70560a 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -1250,11 +1250,11 @@ int Simulation::CreateWalls(int x, int y, int rx, int ry, int c, int flags, Brus
rx = rx/CELL;
x = x/CELL;
y = y/CELL;
- x -= rx/2;
- y -= ry/2;
- for (ox=x; ox<=x+rx; ox++)
+ x -= rx;///2;
+ y -= ry;///2;
+ for (ox=x; ox<=x+rx+rx; ox++)
{
- for (oy=y; oy<=y+rx; oy++)
+ for (oy=y; oy<=y+ry+ry; oy++)
{
if (ox>=0&&ox<XRES/CELL&&oy>=0&&oy<YRES/CELL)
{