summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-07-12 03:32:39 (GMT)
committer jacob1 <jfu614@gmail.com>2013-07-12 03:32:39 (GMT)
commit34db317e446b918d5e388f9b01e64704e2cf9f31 (patch)
tree4f56c0efb4bd3515196502fdd6317fec1ade2873 /src/simulation/Simulation.cpp
parenta06202c78f392db833733d621974af1edcdb1cec (diff)
downloadpowder-34db317e446b918d5e388f9b01e64704e2cf9f31.zip
powder-34db317e446b918d5e388f9b01e64704e2cf9f31.tar.gz
update rules to fix some problems and more closely match the current rules. fixes #126
Diffstat (limited to 'src/simulation/Simulation.cpp')
-rw-r--r--src/simulation/Simulation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp
index 53cd2e6..90b4d81 100644
--- a/src/simulation/Simulation.cpp
+++ b/src/simulation/Simulation.cpp
@@ -521,7 +521,7 @@ int Simulation::FloodINST(int x, int y, int fullc, int cm)
y = coord_stack[coord_stack_size][1];
x1 = x2 = x;
// go left as far as possible
- while (x1>=0)
+ while (x1>=CELL)
{
if ((pmap[y][x1-1]&0xFF)!=cm || parts[pmap[y][x1-1]>>8].life!=0)
{