From 9bd08247336a9be4c5ab71b98ffa40aaaab2c079 Mon Sep 17 00:00:00 2001 From: Felix Wallin Date: Mon, 16 Aug 2010 17:22:25 +0200 Subject: [PATCH] changed looks. still needs to be modified --- powder.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/powder.c b/powder.c index dcca104cd..8090ee3ce 100755 --- a/powder.c +++ b/powder.c @@ -2884,14 +2884,14 @@ justdraw: } else if(t==PT_SLTW) { - for(x=-3; x<3; x++) + for(x=-2; x<2; x++) { - for(y=-3; y<3; y++) + for(y=-2; y<2; y++) { - if (abs(x)+abs(y) <2 && !(abs(x)==2||abs(y)==2)) + if (abs(x)+abs(y) <0 && !(abs(x)==2||abs(y)==2)) blendpixel(vid,x+nx,y+ny,64,80,240,100); - else if(abs(x)+abs(y) <=3 && abs(x)+abs(y)) - blendpixel(vid,x+nx,y+ny,64,80,240,70); + else if(abs(x)+abs(y) == 1 && abs(x)+abs(y)) + blendpixel(vid,x+nx,y+ny,64,80,240,95); else if (abs(x)+abs(y) == 2) blendpixel(vid,x+nx,y+ny,64,80,240,90); } @@ -2942,15 +2942,15 @@ justdraw: } else if(t==PT_LNTG) { - for(x=-3; x<3; x++) + for(x=-2; x<2; x++) { - for(y=-3; y<3; y++) + for(y=-2; y<2; y++) { - if (abs(x)+abs(y) <2 && !(abs(x)==2||abs(y)==2)) + if(abs(x)+abs(y) <0 && !(abs(x)==2||abs(y)==2)) blendpixel(vid,x+nx,y+ny,128,160,223,100); - if(abs(x)+abs(y) <=3 && abs(x)+abs(y)) - blendpixel(vid,x+nx,y+ny,128,160,223,70); - if (abs(x)+abs(y) == 2) + else if(abs(x)+abs(y) == 1 && abs(x)+abs(y)) + blendpixel(vid,x+nx,y+ny,128,160,223,95); + else if (abs(x)+abs(y) == 2) blendpixel(vid,x+nx,y+ny,128,160,223,90); } } @@ -2993,14 +2993,14 @@ justdraw: } else if(t==PT_WATR) { - for(x=-3; x<4; x++) + for(x=-2; x<2; x++) { - for(y=-3; y<4; y++) + for(y=-2; y<2; y++) { - if (abs(x)+abs(y) <2 && !(abs(x)==2||abs(y)==2)) + if (abs(x)+abs(y) <0 && !(abs(x)==2||abs(y)==2)) blendpixel(vid,x+nx,y+ny,32,48,208,100); - if(abs(x)+abs(y) <=3 && abs(x)+abs(y)) - blendpixel(vid,x+nx,y+ny,32,48,208,70); + if(abs(x)+abs(y) == 1 && abs(x)+abs(y)) + blendpixel(vid,x+nx,y+ny,32,48,208,95); if (abs(x)+abs(y) == 2) blendpixel(vid,x+nx,y+ny,32,48,208,90); } @@ -3008,16 +3008,16 @@ justdraw: } else if(t==PT_DSTW) { - for(x=-3; x<4; x++) + for(x=-2; x<2; x++) { - for(y=-3; y<4; y++) + for(y=-2; y<2; y++) { - if (abs(x)+abs(y) <2 && !(abs(x)==2||abs(y)==2)) + if (abs(x)+abs(y) <0 && !(abs(x)==2||abs(y)==2)) blendpixel(vid,x+nx,y+ny,32,48,208,100); - if(abs(x)+abs(y) <=3 && abs(x)+abs(y)) - blendpixel(vid,x+nx,y+ny,32,48,208,50); + if(abs(x)+abs(y) == 1 && abs(x)+abs(y)) + blendpixel(vid,x+nx,y+ny,32,48,208,95); if (abs(x)+abs(y) == 2) - blendpixel(vid,x+nx,y+ny,32,48,208,70); + blendpixel(vid,x+nx,y+ny,32,48,208,90); } } }