From 55c870c5180c20df0936865331a3483b228a449a Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Wed, 25 Jul 2012 18:15:13 +0100 Subject: TPT: Allow INST to be sparked directly with the brush 8de602d467 diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 17bbc9b..d0b42bc 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -2544,6 +2544,11 @@ int Simulation::create_part(int p, int x, int y, int tv)//the function for creat return -1; if (parts[pmap[y][x]>>8].life!=0) return -1; + if (p==-2 && (pmap[y][x]&0xFF)==PT_INST) + { + FloodINST(x, y, PT_SPRK, PT_INST); + return pmap[y][x]>>8; + } parts[pmap[y][x]>>8].type = PT_SPRK; parts[pmap[y][x]>>8].life = 4; parts[pmap[y][x]>>8].ctype = pmap[y][x]&0xFF; -- cgit v0.9.2-21-gd62e