diff options
| author | Simon <simon@hardwired.org.uk> | 2010-12-30 09:55:43 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2010-12-30 09:55:43 (GMT) |
| commit | b92e6b391fd41b03002eca8b1c212c22b42bb707 (patch) | |
| tree | 3c9938238eae25b1ac99a28ce56af2063f32cc7b /src/graphics.c | |
| parent | b57b017907e061fbf38c15693a696f04bee754c4 (diff) | |
| parent | 2212d04fb035ec9e29d27ac8c0d818c83a5f3782 (diff) | |
| download | powder-b92e6b391fd41b03002eca8b1c212c22b42bb707.zip powder-b92e6b391fd41b03002eca8b1c212c22b42bb707.tar.gz | |
Merge recent cracker changes
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 3fcd0e4..4b08977 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -1519,6 +1519,17 @@ void draw_parts(pixel *vid) } } + else if(t==PT_QRTZ || t==PT_PQRT) + { + int q = parts[i].tmp; + cr = q * 16 + PIXR(ptypes[t].pcolors); + cg = q * 16 + PIXG(ptypes[t].pcolors); + cb = q * 16 + 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; |
