diff options
| author | jacksonmj <jacksonmj@jacksonmj.none> | 2011-01-10 14:41:03 (GMT) |
|---|---|---|
| committer | jacksonmj <jacksonmj@jacksonmj.none> | 2011-01-10 14:41:03 (GMT) |
| commit | 54f9f872b9e4d5a0086d6de104e84d43b125c349 (patch) | |
| tree | b567fb9d3710acbce22f8193bfe2585bb2988bed /src/elements/plnt.c | |
| parent | 855281295fbc23366e8b84d7c8e55816d6f47a87 (diff) | |
| download | powder-54f9f872b9e4d5a0086d6de104e84d43b125c349.zip powder-54f9f872b9e4d5a0086d6de104e84d43b125c349.tar.gz | |
Finish update function cleanup
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 dc5f07c..20b542a 100644 --- a/src/elements/plnt.c +++ b/src/elements/plnt.c @@ -25,7 +25,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(nx+ny)<=2 && VINE_MODE) + else if ((r&0xFF)==PT_WOOD && (1>rand()%20) && abs(rx+ry)<=2 && VINE_MODE) { int nnx = rand()%3 -1; int nny = rand()%3 -1; |
