summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
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