summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-12 17:50:43 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-12 17:50:43 (GMT)
commit1ccdc1dc12d8a1d0ea6921da4df2ecbef7940de5 (patch)
tree3298ee8e7a7f2031436e3df699c35efcc8840e60 /src
parentaf5c399c246482118fbb11ceaa3165a63c2117d8 (diff)
downloadpowder-1ccdc1dc12d8a1d0ea6921da4df2ecbef7940de5.zip
powder-1ccdc1dc12d8a1d0ea6921da4df2ecbef7940de5.tar.gz
TPT: Make tron follow TRON_NOGROW , thought that was in there.... (github edit because cate is annoying me) c5b9b8d28a
Diffstat (limited to 'src')
-rw-r--r--src/simulation/elements/TRON.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/simulation/elements/TRON.cpp b/src/simulation/elements/TRON.cpp
index cb5f865..e883a17 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