diff options
| author | Cracker64 <cracker642@gmail.com> | 2011-01-19 18:48:59 (GMT) |
|---|---|---|
| committer | Cracker64 <cracker642@gmail.com> | 2011-01-19 18:48:59 (GMT) |
| commit | ff01973658fc72b107c820e7f9f738e1a872b261 (patch) | |
| tree | 54a348c092f3324a81f46f13f26c7fc88568a24c /src/graphics.c | |
| parent | 5c65d69dacfb8fda234c71b78f55a849d246fcc2 (diff) | |
| download | powder-ff01973658fc72b107c820e7f9f738e1a872b261.zip powder-ff01973658fc72b107c820e7f9f738e1a872b261.tar.gz | |
made all the shifts and type checks use defines, so it can be changed easier, and put it back to normal with a shift of 8.
Diffstat (limited to 'src/graphics.c')
| -rw-r--r-- | src/graphics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics.c b/src/graphics.c index 047e0c4..ce6c561 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -2901,8 +2901,8 @@ void render_signs(pixel *vid_buf) } if(strcmp(signs[i].text, "{t}")==0) { - if((pmap[signs[i].y][signs[i].x]>>12)>0 && (pmap[signs[i].y][signs[i].x]>>12)<NPART) - sprintf(buff, "Temp: %4.2f", parts[pmap[signs[i].y][signs[i].x]>>12].temp-273.15); //...tempirature + if((pmap[signs[i].y][signs[i].x]>>PS)>0 && (pmap[signs[i].y][signs[i].x]>>PS)<NPART) + sprintf(buff, "Temp: %4.2f", parts[pmap[signs[i].y][signs[i].x]>>PS].temp-273.15); //...tempirature else sprintf(buff, "Temp: 0.00"); //...tempirature drawtext(vid_buf, x+3, y+3, buff, 255, 255, 255, 255); |
