From d501059c1b9439a11220163cd3e9333981bf15ff Mon Sep 17 00:00:00 2001 From: Felix Wallin Date: Mon, 16 Aug 2010 17:05:39 +0200 Subject: [PATCH] Added ln2 diffusing --- powder.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/powder.c b/powder.c index 50b559916..dcca104cd 100755 --- a/powder.c +++ b/powder.c @@ -2940,6 +2940,22 @@ justdraw: y = ny; blendpixel(vid,x,y,17,217,24,255); } + else if(t==PT_LNTG) + { + for(x=-3; x<3; x++) + { + for(y=-3; y<3; y++) + { + if (abs(x)+abs(y) <2 && !(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) + blendpixel(vid,x+nx,y+ny,128,160,223,90); + } + } + + } else if(t==PT_SMKE) { if(cmode == 3||cmode==4)