diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 17:46:15 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 17:46:15 (GMT) |
| commit | 76070f99e0e9e4817f17dc55489756276b7b58c3 (patch) | |
| tree | 3d25e291f9744c5f67b4cb5f85db52603e7273ce /src/simulation/elements/PLNT.cpp | |
| parent | fad2311c3603edde6b6712e9d32cc6a8ff56dca2 (diff) | |
| download | powder-76070f99e0e9e4817f17dc55489756276b7b58c3.zip powder-76070f99e0e9e4817f17dc55489756276b7b58c3.tar.gz | |
TPT: This should fix PLNT lag just a little bit... (mostly after shooting though NEUT) 5f3c10a684
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 62178af..92a4fdf 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 || parts[i].tmp==1) ) + else if (surround_space && ((r&0xFF)==PT_WOOD) && (1>rand()%20) && (abs(rx+ry)<=2) && (VINE_MODE || parts[i].tmp==1) ) { int nnx = rand()%3 -1; int nny = rand()%3 -1; |
