From ed38916423873ff870f402b341ebbbc6f4d8559e Mon Sep 17 00:00:00 2001 From: Felix Wallin Date: Mon, 16 Aug 2010 19:43:03 +0200 Subject: [PATCH] added test for gas --- powder.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/powder.c b/powder.c index f019485fc..74b23fc66 100755 --- a/powder.c +++ b/powder.c @@ -2831,7 +2831,7 @@ justdraw: if ((abs(x) == 0) && (abs(y) == 0)) blendpixel(vid,x+nx,y+ny,cr,cg,cb,100); else if (abs(y) != 0 || abs(x) != 0) - blendpixel(vid,x+nx,y+ny,cr,cg,cb,50); + blendpixel(vid,x+nx,y+ny,cr,cg,cb,40); } } @@ -2857,7 +2857,7 @@ justdraw: if ((abs(x) == 0) && (abs(y) == 0)) blendpixel(vid,x+nx,y+ny,64,64,16,100); else if (abs(y) != 0 || abs(x) != 0) - blendpixel(vid,x+nx,y+ny,64,64,16,50); + blendpixel(vid,x+nx,y+ny,64,64,16,40); } } } @@ -3023,6 +3023,20 @@ justdraw: } } } + else if(t==PT_GASS) + { + for(x=-1; x<=1; x++) + { + for(y=-1; y<=1; y++) + { + if ((abs(x) == 0) && (abs(y) == 0)) + blendpixel(vid,x+nx,y+ny,224,255,32,100); + else if (abs(y) != 0 || abs(x) != 0) + blendpixel(vid,x+nx,y+ny,224,255,32,20); + } + } + + } else if(t==PT_WTRV) { if(cmode == 3||cmode==4)