From 8de602d467915a79854b211e1ea9cf6fc5c9e452 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Wed, 27 Jun 2012 00:03:14 +0100 Subject: [PATCH] Allow INST to be sparked directly with the brush --- src/powder.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/powder.c b/src/powder.c index 141c1fa4a..889a5f642 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;