summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-01-04 18:54:25 (GMT)
committer jacob1 <jfu614@gmail.com>2013-01-04 18:54:25 (GMT)
commit1b2e7b3c70bf72b069786c1ccd2a782028ae84ce (patch)
tree3e2ed576045bb83ae6cb973b18898afdbed0fba4 /src/simulation/Simulation.cpp
parent8e50abcab956b7cf842a7891bcb1ceac40caf5d4 (diff)
downloadpowder-1b2e7b3c70bf72b069786c1ccd2a782028ae84ce.zip
powder-1b2e7b3c70bf72b069786c1ccd2a782028ae84ce.tar.gz
fix Ctrl+x being one pixel off, better xor_rect from tpt, delete test.c
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index a30fea8..a8cc41f 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -343,9 +343,9 @@ void Simulation::clear_area(int area_x, int area_y, int area_w, int area_h)
{
int cx = 0;
int cy = 0;
- for (cy=0; cy<area_h; cy++)
+ for (cy=0; cy<=area_h; cy++)
{
- for (cx=0; cx<area_w; cx++)
+ for (cx=0; cx<=area_w; cx++)
{
if(bmap[(cy+area_y)/CELL][(cx+area_x)/CELL] == WL_GRAV)
gravWallChanged = true;