diff options
| author | Catelite <liclockwork@yahoo.com> | 2012-06-13 17:14:44 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-13 17:28:27 (GMT) |
| commit | a83a995f23c7b7b511b05f312f1e686acac74183 (patch) | |
| tree | 3c51ad0f073ca6dac399bf00d43daa77a743aa58 /src/elements/plnt.c | |
| parent | 12cf2a31455331d6f0b07f2e029a73eab2ac4cbf (diff) | |
| download | powder-a83a995f23c7b7b511b05f312f1e686acac74183.zip powder-a83a995f23c7b7b511b05f312f1e686acac74183.tar.gz | |
Added a tmp=1 flag to PLNT so that VINE will actually function like intended when VINE_MODE is disabled. Plant touching wood is unaffected, but vine that touches wood will grow.
Diffstat (limited to 'src/elements/plnt.c')
| -rw-r--r-- | src/elements/plnt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/plnt.c b/src/elements/plnt.c index 6a2adc3..0df69b5 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) + else if ( ((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; |
