diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 17:15:13 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-25 17:15:13 (GMT) |
| commit | 55c870c5180c20df0936865331a3483b228a449a (patch) | |
| tree | e7e59101f97f60628596eee7eef2e3d24742c7ac /src/simulation/Simulation.cpp | |
| parent | aa156fb9330d739558c40a5f3f9a3911781a3fea (diff) | |
| download | powder-55c870c5180c20df0936865331a3483b228a449a.zip powder-55c870c5180c20df0936865331a3483b228a449a.tar.gz | |
TPT: Allow INST to be sparked directly with the brush 8de602d467
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |
