summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2012-06-26 23:03:14 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2012-06-26 23:03:14 (GMT)
commit8de602d467915a79854b211e1ea9cf6fc5c9e452 (patch)
tree2fc844a0a5fcc517b8444d987b126ba02a583030 /src
parent9ee316c3e91a721f07f33a486e8599c5e03528e8 (diff)
downloadpowder-8de602d467915a79854b211e1ea9cf6fc5c9e452.zip
powder-8de602d467915a79854b211e1ea9cf6fc5c9e452.tar.gz
Allow INST to be sparked directly with the brush
Diffstat (limited to 'src')
-rw-r--r--src/powder.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c
index 141c1fa..889a5f6 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -820,6 +820,11 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a
return -1;
if (parts[pmap[y][x]>>8].life!=0)
return -1;
+ if (p==-2 && (pmap[y][x]&0xFF)==PT_INST)
+ {
+ flood_INST(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;