From 4340b84499048cd45a5fd450a922965e878b1d59 Mon Sep 17 00:00:00 2001 From: Bryan Hoyle Date: Fri, 26 Aug 2011 10:19:43 -0400 Subject: [PATCH] Fixed some possible coding errors --- src/powder.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/powder.c b/src/powder.c index 872707841..870e793e4 100644 --- a/src/powder.c +++ b/src/powder.c @@ -2648,11 +2648,12 @@ int create_parts(int x, int y, int rx, int ry, int c, int flags) } if (dw==1) { + ry = ry/CELL; rx = rx/CELL; x = x/CELL; y = y/CELL; x -= rx/2; - y -= rx/2; + y -= ry/2; for (ox=x; ox<=x+rx; ox++) { for (oy=y; oy<=y+rx; oy++) @@ -2679,7 +2680,7 @@ int create_parts(int x, int y, int rx, int ry, int c, int flags) if (b==WL_STREAM) { i = x + rx/2; - j = y + rx/2; + j = y + ry/2; for (v=-1; v<2; v++) for (u=-1; u<2; u++) if (i+u>=0 && i+u