diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 14:32:05 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 14:32:05 (GMT) |
| commit | 2189d298a7ae718b9d483cc3925bcb8fee854281 (patch) | |
| tree | b5922ae28bb578b926c2856f1681f1b08392777f /src/simulation/elements/PLNT.cpp | |
| parent | fad383f3923cc04fb8b2ecd7a72cf5406832cf5d (diff) | |
| download | powder-2189d298a7ae718b9d483cc3925bcb8fee854281.zip powder-2189d298a7ae718b9d483cc3925bcb8fee854281.tar.gz | |
TPT: Move INST flood fill into a separate function 36de2f19f5
Diffstat (limited to 'src/simulation/elements/PLNT.cpp')
| -rw-r--r-- | src/simulation/elements/PLNT.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simulation/elements/PLNT.cpp b/src/simulation/elements/PLNT.cpp index 91d29d0..62178af 100644 --- a/src/simulation/elements/PLNT.cpp +++ b/src/simulation/elements/PLNT.cpp @@ -73,7 +73,7 @@ int Element_PLNT::update(UPDATE_FUNC_ARGS) sim->kill_part(r>>8); parts[i].life = rand()%60 + 60; } - else if ((r&0xFF)==PT_WOOD && (1>rand()%20) && abs(rx+ry)<=2 && sim->VINE_MODE) + else if ( ((r&0xFF)==PT_WOOD) && (1>rand()%20) && (abs(rx+ry)<=2) && (sim->VINE_MODE || parts[i].tmp==1) ) { int nnx = rand()%3 -1; int nny = rand()%3 -1; |
