diff options
| author | Phil <cracker642@gmail.com> | 2010-09-07 04:00:26 (GMT) |
|---|---|---|
| committer | Phil <cracker642@gmail.com> | 2010-09-07 04:00:26 (GMT) |
| commit | a54f5cb7a7f1d977e9675a42529b7e85c6295969 (patch) | |
| tree | a6e00c8b7d45708d143a277a67fed39f75e962aa /graphics.c | |
| parent | 2c4b08696d23ddedab4edf1ac24dce1d4413e39d (diff) | |
| download | powder-a54f5cb7a7f1d977e9675a42529b7e85c6295969.zip powder-a54f5cb7a7f1d977e9675a42529b7e85c6295969.tar.gz | |
Fixed some temperature errors in the table, fixed some relative weights, and fixed the names on the sides. Renamed PT_PLEX to PT_C4 to make more sense, fixed ice/snow melting problem. made temp sign say N/A instead of 0 when there is nothing.
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1899,9 +1899,9 @@ void render_signs(pixel *vid_buf) if(strcmp(signs[i].text, "{t}")==0) { if((pmap[signs[i].y][signs[i].x]>>8)>0 && (pmap[signs[i].y][signs[i].x]>>8)<NPART) - sprintf(buff, "Temp: %4.2f", parts[pmap[signs[i].y][signs[i].x]>>8].temp); //...tempirature + sprintf(buff, "Temp: %4.2f", parts[pmap[signs[i].y][signs[i].x]>>8].temp-273.15f); //...tempirature else - sprintf(buff, "Temp: 0.00"); //...tempirature + sprintf(buff, "Temp: N/A"); //...tempirature drawtext(vid_buf, x+3, y+3, buff, 255, 255, 255, 255); } |
