summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorcracker64 <cracker642@gmail.com>2012-05-23 02:26:28 (GMT)
committer cracker64 <cracker642@gmail.com>2012-05-23 02:26:28 (GMT)
commitc5b9b8d28a841915bb26e64f703e75b69c724ac1 (patch)
treecfe605aac223573687f267e85cf25c8d3ac2d4e1 /src/elements
parent0fb6b85706376dbe73fbc0cc7d5a68ed530ef8aa (diff)
downloadpowder-c5b9b8d28a841915bb26e64f703e75b69c724ac1.zip
powder-c5b9b8d28a841915bb26e64f703e75b69c724ac1.tar.gz
Make tron follow TRON_NOGROW , thought that was in there.... (github edit because cate is annoying me)
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/tron.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/elements/tron.c b/src/elements/tron.c
index 98a46e9..f6ee3d7 100644
--- a/src/elements/tron.c
+++ b/src/elements/tron.c
@@ -47,7 +47,8 @@ int new_tronhead(int x, int y, int i, int direction)
return -1;
if (parts[i].life >= 100) // increase tail length
{
- parts[i].tmp2++;
+ if (!(parts[i].tmp&TRON_NOGROW))
+ parts[i].tmp2++;
parts[i].life = 5;
}
//give new head our properties