diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2011-10-11 13:51:45 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-10-13 16:33:20 (GMT) |
| commit | 107e77a1a13f3dbdbc9703247f52f41716cd8115 (patch) | |
| tree | b7e21896626ce264dd4afca4b4a64358e69cbb81 /src | |
| parent | 265ce68e8146cf9b328b5fbc8c6b522b83311353 (diff) | |
| download | powder-107e77a1a13f3dbdbc9703247f52f41716cd8115.zip powder-107e77a1a13f3dbdbc9703247f52f41716cd8115.tar.gz | |
Prevent extra particles at the end of 1px lines
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c index 3fe4ef5..be22ca6 100644 --- a/src/powder.c +++ b/src/powder.c @@ -3103,7 +3103,8 @@ 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+100 || c==WL_ALLOWGAS+100 || c==WL_ALLOWENERGY+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 ((c==WL_EHOLE+100 || c==WL_ALLOWGAS+100 || c==WL_ALLOWENERGY+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)) + && ((y1<y2) ? (y<=y2) : (y>=y2))) { if (cp) create_parts(y, x, rx, ry, c, flags); |
