Fix Replacemode delete on Tools

This commit is contained in:
Simon Robertshaw 2012-03-23 10:22:46 +00:00
parent 34b7003a45
commit 12270f1ef3

View File

@ -3062,7 +3062,9 @@ int create_parts(int x, int y, int rx, int ry, int c, int flags, int fill)
return 1;
}
if (c == 0 && !(flags&BRUSH_REPLACEMODE)) // delete
if (c == SPC_AIR || c == SPC_HEAT || c == SPC_COOL || c == SPC_VACUUM || c == SPC_PGRV || c == SPC_NGRV)
fn = 3;
else if (c == 0 && !(flags&BRUSH_REPLACEMODE)) // delete
fn = 0;
else if ((flags&BRUSH_SPECIFIC_DELETE) && !(flags&BRUSH_REPLACEMODE)) // specific delete
fn = 1;