summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcracker64 <cracker642@gmail.com>2012-07-08 02:15:37 (GMT)
committer cracker64 <cracker642@gmail.com>2012-07-08 02:15:37 (GMT)
commit5f3c10a6844aa2196258aa52448c8f753edb8439 (patch)
treeb7bae5fae3667e18863784c973c1fba8ce3ba6be /src
parente8062770007b34a372257ec82a003a0b905aa71c (diff)
downloadpowder-5f3c10a6844aa2196258aa52448c8f753edb8439.zip
powder-5f3c10a6844aa2196258aa52448c8f753edb8439.tar.gz
This should fix PLNT lag just a little bit... (mostly after shooting through NEUT)
Diffstat (limited to 'src')
-rw-r--r--src/elements/plnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/plnt.c b/src/elements/plnt.c
index 0df69b5..8fff1a6 100644
--- a/src/elements/plnt.c
+++ b/src/elements/plnt.c
@@ -40,7 +40,7 @@ int update_PLNT(UPDATE_FUNC_ARGS) {
kill_part(r>>8);
parts[i].life = rand()%60 + 60;
}
- else if ( ((r&0xFF)==PT_WOOD) && (1>rand()%20) && (abs(rx+ry)<=2) && (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;