diff options
| author | jacksonmj <jacksonmj@jacksonmj.none> | 2011-04-15 23:47:31 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-04-16 16:27:03 (GMT) |
| commit | 96d2587f298cd2d235afc382ab78a11868fd3bb1 (patch) | |
| tree | 3b36512712ebffc50465b23d6257c83b79eeedc1 /src | |
| parent | 1c771d1ea48f692b6c4a0b8ba83fbdf94590c527 (diff) | |
| download | powder-96d2587f298cd2d235afc382ab78a11868fd3bb1.zip powder-96d2587f298cd2d235afc382ab78a11868fd3bb1.tar.gz | |
Make high life lcry, pcln, pump, hswc graphics more boring
Diffstat (limited to 'src')
| -rw-r--r-- | src/graphics.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/graphics.c b/src/graphics.c index 47af4e1..b92f12c 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -2516,7 +2516,7 @@ void draw_parts(pixel *vid) } else if (t==PT_LCRY) { - uint8 GR = 0x50+(parts[i].life*10); + uint8 GR = 0x50+((parts[i].life>10?10:parts[i].life)*10); vid[ny*(XRES+BARSIZE)+nx] = PIXRGB(GR, GR, GR); if (cmode == CM_BLOB) { blendpixel(vid, nx+1, ny, GR, GR, GR, 223); @@ -2532,7 +2532,7 @@ void draw_parts(pixel *vid) } else if (t==PT_PCLN) { - uint8 GR = 0x3B+(parts[i].life*19); + uint8 GR = 0x3B+((parts[i].life>10?10:parts[i].life)*19); vid[ny*(XRES+BARSIZE)+nx] = PIXRGB(GR, GR, 10); if (cmode == CM_BLOB) { blendpixel(vid, nx+1, ny, GR, GR, 10, 223); @@ -2548,7 +2548,7 @@ void draw_parts(pixel *vid) } else if (t==PT_HSWC) { - uint8 GR = 0x3B+(parts[i].life*19); + uint8 GR = 0x3B+((parts[i].life>10?10:parts[i].life)*19); vid[ny*(XRES+BARSIZE)+nx] = PIXRGB(GR, 10, 10); if (cmode == CM_BLOB) { blendpixel(vid, nx+1, ny, GR, 10, 10, 223); @@ -2564,7 +2564,7 @@ void draw_parts(pixel *vid) } else if (t==PT_PUMP) { - uint8 GR = 0x3B+(parts[i].life*19); + uint8 GR = 0x3B+((parts[i].life>10?10:parts[i].life)*19); vid[ny*(XRES+BARSIZE)+nx] = PIXRGB(10, 10, GR); if (cmode == CM_BLOB) { blendpixel(vid, nx+1, ny, 10, 10, GR, 223); |
