summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-06-14 16:09:36 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-06-14 16:09:36 (GMT)
commit4fcaadd565d5d7391dd9aa741ac41760681b2bad (patch)
treee4461e37075700a7e7420a6bc12e307ac749873c /src
parent0fbc55dfe8247a62557ff7883c15af95c2a79d46 (diff)
downloadpowder-4fcaadd565d5d7391dd9aa741ac41760681b2bad.zip
powder-4fcaadd565d5d7391dd9aa741ac41760681b2bad.tar.gz
Make aheat in HEAT view less intense
Diffstat (limited to 'src')
-rw-r--r--src/graphics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 8d06088..47bcece 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1336,7 +1336,7 @@ void draw_air(pixel *vid)
{
float ttemp = hv[y][x]+(-MIN_TEMP);
int caddress = restrict_flt((int)( restrict_flt(ttemp, 0.0f, MAX_TEMP+(-MIN_TEMP)) / ((MAX_TEMP+(-MIN_TEMP))/1024) ) *3, 0.0f, (1024.0f*3)-3);
- c = PIXRGB((unsigned char)color_data[caddress], (unsigned char)color_data[caddress+1], (unsigned char)color_data[caddress+2]);
+ c = PIXRGB((int)((unsigned char)color_data[caddress]*0.7f), (int)((unsigned char)color_data[caddress+1]*0.7f), (int)((unsigned char)color_data[caddress+2]*0.7f));
//c = PIXRGB(clamp_flt(fabsf(vx[y][x]), 0.0f, 8.0f),//vx adds red
// clamp_flt(hv[y][x], 0.0f, 1600.0f),//heat adds green
// clamp_flt(fabsf(vy[y][x]), 0.0f, 8.0f));//vy adds blue