summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Wallin <nibbler.v1@gmail.com>2010-08-16 15:39:41 (GMT)
committer Felix Wallin <nibbler.v1@gmail.com>2010-08-16 15:39:41 (GMT)
commit242c7097387d013758db0d5b01094225e9a15600 (patch)
tree1147d761b38f2806d3b63a54721089f3f41ff8e1
parent9bd08247336a9be4c5ab71b98ffa40aaaab2c079 (diff)
downloadpowder-242c7097387d013758db0d5b01094225e9a15600.zip
powder-242c7097387d013758db0d5b01094225e9a15600.tar.gz
more changes with diffusion of liquids
-rwxr-xr-xpowder.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/powder.c b/powder.c
index 8090ee3..a932696 100755
--- a/powder.c
+++ b/powder.c
@@ -2850,6 +2850,22 @@ justdraw:
blendpixel(vid, nx-1, ny+1, cr, cg, cb, 112);
}
}
+ else if(t==PT_OILL)
+ {
+ for(x=-2; x<2; x++)
+ {
+ for(y=-2; y<2; y++)
+ {
+ if (abs(x)+abs(y) <=0 && !(abs(x)==2||abs(y)==2))
+ blendpixel(vid,x+nx,y+ny,64,64,16,100);
+ if(abs(x)+abs(y) <1 && abs(x)+abs(y))
+ blendpixel(vid,x+nx,y+ny,64,64,16,95);
+ if (abs(x)+abs(y) <= 2)
+ blendpixel(vid,x+nx,y+ny,64,64,16,90);
+ }
+ }
+
+ }
else if(t==PT_NEUT)
{
if(cmode == 3||cmode==4)