From 1c291ac31db9eb70b0a0e93b6a2208c638949f56 Mon Sep 17 00:00:00 2001 From: Bryan Hoyle Date: Thu, 25 Aug 2011 18:45:11 -0400 Subject: Fixed wall glitch with >1px making holes diff --git a/src/powder.c b/src/powder.c index e9b3e62..8727078 100644 --- a/src/powder.c +++ b/src/powder.c @@ -2866,7 +2866,7 @@ void create_line(int x1, int y1, int x2, int y2, int rx, int ry, int c, int flag if (e >= 0.5f) { y += sy; - if (c==WL_EHOLE || c==WL_ALLOWGAS || c==WL_ALLOWALLELEC || c==WL_ALLOWSOLID || c==WL_ALLOWAIR || c==WL_WALL || c==WL_DESTROYALL || c==WL_ALLOWLIQUID || c==WL_FAN || c==WL_STREAM || c==WL_DETECT || c==WL_EWALL || c==WL_WALLELEC || !(rx+ry)) + if (c==WL_EHOLE+100 || c==WL_ALLOWGAS+100 || c==WL_ALLOWALLELEC+100 || c==WL_ALLOWSOLID+100 || c==WL_ALLOWAIR+100 || c==WL_WALL+100 || c==WL_DESTROYALL+100 || c==WL_ALLOWLIQUID+100 || c==WL_FAN+100 || c==WL_STREAM+100 || c==WL_DETECT+100 || c==WL_EWALL+100 || c==WL_WALLELEC+100 || !(rx+ry)) { if (cp) create_parts(y, x, rx, ry, c, flags); -- cgit v0.9.2-21-gd62e