From 6ef9f0300ed36c7583db996c8ce0f5ea87a96f11 Mon Sep 17 00:00:00 2001 From: Cracker64 Date: Mon, 7 Mar 2011 00:32:04 -0500 Subject: [PATCH] check bounds for wind, causes some funny glitches though. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 78f4414fe..f16ba1c9d 100644 --- a/src/main.c +++ b/src/main.c @@ -2417,7 +2417,7 @@ int main(int argc, char *argv[]) { for (j=-bsy; j<=bsy; j++) for (i=-bsx; i<=bsx; i++) - if ((CURRENT_BRUSH==CIRCLE_BRUSH && (pow(i,2))/(pow(bsx,2))+(pow(j,2))/(pow(bsy,2))<=1)||(CURRENT_BRUSH==SQUARE_BRUSH&&i*j<=bsy*bsx)) + if (x+i>0 && y+j>0 && x+i