From 77646c71040182fd7871407c3fd1f404e2e4f4b0 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 17 Aug 2010 03:09:45 +0800 Subject: [PATCH] sorta glow-ish --- powder.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/powder.c b/powder.c index 54f0f96b8..03c7a7f6e 100755 --- a/powder.c +++ b/powder.c @@ -3180,8 +3180,20 @@ justdraw: blendpixel(vid, nx+1, ny+1, cr, cg, cb, 32); blendpixel(vid, nx-1, ny-1, cr, cg, cb, 32); } - } - else if(t==PT_PLSM) + } else if(t==PT_URAN) { + cr=0x70; + cg=0x70; + cb=0x20; + blendpixel(vid, nx, ny, 255, 255, 255, 255); + blendpixel(vid, nx+1, ny, cr+100, cg+100, cb+100, 96); + blendpixel(vid, nx-1, ny, cr+100, cg+100, cb+100, 96); + blendpixel(vid, nx, ny+1, cr+100, cg+100, cb+100, 96); + blendpixel(vid, nx, ny-1, cr+100, cg+100, cb+100, 96); + blendpixel(vid, nx+1, ny-1, cr, cg, cb, 255); + blendpixel(vid, nx-1, ny+1, cr, cg, cb, 255); + blendpixel(vid, nx+1, ny+1, cr, cg, cb, 255); + blendpixel(vid, nx-1, ny-1, cr, cg, cb, 255); + } else if(t==PT_PLSM) { float ttemp = parts[i].life; int caddress = restrict_flt(restrict_flt(ttemp, 0.0f, 200.0f)*3, 0.0f, (200.0f*3)-3);