diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-08-26 10:56:46 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-08-26 10:56:46 (GMT) |
| commit | efc7565b6fb2958d7b50229178cd59835d06f9a0 (patch) | |
| tree | 16ea6119e51ab07539975866ded50e56b45ee533 /src/graphics.c | |
| parent | 10f0c6665f81de9634703397b829d2c675910800 (diff) | |
| download | powder-efc7565b6fb2958d7b50229178cd59835d06f9a0.zip powder-efc7565b6fb2958d7b50229178cd59835d06f9a0.tar.gz | |
More stuff for CO2
Diffstat (limited to 'src/graphics.c')
| -rw-r--r-- | src/graphics.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c index 3ea811f..1016adb 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -2138,6 +2138,17 @@ void draw_parts(pixel *vid) cb = cb>255?255:cb; blendpixel(vid, nx, ny, cr, cg, cb, 255); } + else if (t==PT_CBNW) + { + int z = parts[i].tmp2 - 20;//speckles! + cr = z * 1 + PIXR(ptypes[t].pcolors); + cg = z * 2 + PIXG(ptypes[t].pcolors); + cb = z * 8 + PIXB(ptypes[t].pcolors); + cr = cr>255?255:cr; + cg = cg>255?255:cg; + cb = cb>255?255:cb; + blendpixel(vid, nx, ny, cr, cg, cb, 255); + } else if (t==PT_SPNG) { cr = PIXR(ptypes[t].pcolors) - parts[i].life*15; |
