summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2011-02-23 20:54:11 (GMT)
committer Simon <simon@hardwired.org.uk>2011-02-23 20:54:11 (GMT)
commit1b9b1752a77ec0bd9c9d9b02a6a0103f1e7f8c21 (patch)
tree6a16b8ddffbaf82ef0144d3056b13826aa41d8a2 /src/graphics.c
parent5d4d815ad3e6510210c8b6646d972f317cb44caa (diff)
downloadpowder-1b9b1752a77ec0bd9c9d9b02a6a0103f1e7f8c21.zip
powder-1b9b1752a77ec0bd9c9d9b02a6a0103f1e7f8c21.tar.gz
Switch life to ctype for, photons apparently use the GLOW ctype for something
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 4b29dc7..cea2ba7 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -2371,11 +2371,11 @@ void draw_parts(pixel *vid)
else if (t==PT_GLOW)
{
fr = restrict_flt(parts[i].temp-(275.13f+32.0f), 0, 128)/50.0f;
- fg = restrict_flt(parts[i].life, 0, 128)/50.0f;
+ fg = restrict_flt(parts[i].ctype, 0, 128)/50.0f;
fb = restrict_flt(parts[i].tmp, 0, 128)/50.0f;
cr = restrict_flt(64.0f+parts[i].temp-(275.13f+32.0f), 0, 255);
- cg = restrict_flt(64.0f+parts[i].life, 0, 255);
+ cg = restrict_flt(64.0f+parts[i].ctype, 0, 255);
cb = restrict_flt(64.0f+parts[i].tmp, 0, 255);
vid[ny*(XRES+BARSIZE)+nx] = PIXRGB(cr, cg, cb);