From c7f1e2e423fea5772c3718e5b30f5bdd792267cc Mon Sep 17 00:00:00 2001 From: Cracker64 Date: Tue, 11 Jan 2011 10:45:16 -0500 Subject: [PATCH] fix 1px brush replace mode --- src/powder.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/powder.c b/src/powder.c index 5f6a78a48..877048c5d 100644 --- a/src/powder.c +++ b/src/powder.c @@ -6130,7 +6130,15 @@ int create_parts(int x, int y, int rx, int ry, int c) { if(rx==0&&ry==0) { - create_part(-2, x, y, c); + if((pmap[y][x]&0xFF)==SLALT || SLALT==0) + { + if((pmap[y][x])) + { + delete_part(x, y); + if(c!=0) + create_part(-2, x, y, c); + } + } } else for(j=-ry; j<=ry; j++)