diff options
| author | Cracker64 <cracker642@gmail.com> | 2011-01-18 00:11:30 (GMT) |
|---|---|---|
| committer | Cracker64 <cracker642@gmail.com> | 2011-01-18 00:11:30 (GMT) |
| commit | e1eeaf9e9a1cd5f500cc262e871d36a341782eca (patch) | |
| tree | 5f1fe3073265bc67fc7477252cac0ad80ca8aba7 /src/graphics.c | |
| parent | 926450a9a3db03d0abd1afcff4ea0269415c0ced (diff) | |
| download | powder-e1eeaf9e9a1cd5f500cc262e871d36a341782eca.zip powder-e1eeaf9e9a1cd5f500cc262e871d36a341782eca.tar.gz | |
test with increased element limit, there seems to be no performace decrease to me anyway. element limit of 4096
Diffstat (limited to 'src/graphics.c')
| -rw-r--r-- | src/graphics.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graphics.c b/src/graphics.c index ffaa333..047e0c4 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -447,7 +447,7 @@ void draw_tool(pixel *vid_buf, int b, int sl, int sr, unsigned pc, unsigned iswa int draw_tool_xy(pixel *vid_buf, int x, int y, int b, unsigned pc) { int i, j, c; - if(b>=UI_WALLSTART) + if(b>=UI_WALLSTART && b<=UI_WALLSTART+UI_WALLCOUNT) { b = b-100; //x = (2+32*((b-22)/1)); @@ -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]>>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-273.15); //...tempirature + 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 else sprintf(buff, "Temp: 0.00"); //...tempirature drawtext(vid_buf, x+3, y+3, buff, 255, 255, 255, 255); |
