From 1ccdc1dc12d8a1d0ea6921da4df2ecbef7940de5 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 12 Jun 2012 18:50:43 +0100 Subject: [PATCH] TPT: Make tron follow TRON_NOGROW , thought that was in there.... (github edit because cate is annoying me) c5b9b8d28a --- src/simulation/elements/TRON.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/simulation/elements/TRON.cpp b/src/simulation/elements/TRON.cpp index cb5f865fa..e883a1777 100644 --- a/src/simulation/elements/TRON.cpp +++ b/src/simulation/elements/TRON.cpp @@ -172,7 +172,8 @@ int Element_TRON::new_tronhead(Simulation * sim, int x, int y, int i, int direct return -1; if (sim->parts[i].life >= 100) // increase tail length { - sim->parts[i].tmp2++; + if (!(sim->parts[i].tmp&TRON_NOGROW)) + sim->parts[i].tmp2++; sim->parts[i].life = 5; } //give new head our properties