diff options
| author | Simon <simon@hardwired.org.uk> | 2010-08-29 14:37:22 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2010-08-29 14:37:22 (GMT) |
| commit | 75d3e18fbfb3dfb8f757cbe3d36d5953c2621956 (patch) | |
| tree | 7b9d8f368126a56a4054a2d39c0b7ccdfc396b73 /graphics.c | |
| parent | 88091fd7b41fbef3d685dc70ac3689edc19e491f (diff) | |
| download | powder-75d3e18fbfb3dfb8f757cbe3d36d5953c2621956.zip powder-75d3e18fbfb3dfb8f757cbe3d36d5953c2621956.tar.gz | |
Rendering bugfixes, added Thermite
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1112,8 +1112,10 @@ void draw_parts(pixel *vid) float mv, dx, dy, ix, iy, lx, ly, d, pp; float pt = R_TEMP; for(i = 0; i<NPART; i++){ - t = parts[i].type; - nx = (int)(parts[i].x+0.5f); + if(parts[i].type){ + t = parts[i].type; + + nx = (int)(parts[i].x+0.5f); ny = (int)(parts[i].y+0.5f); if(cmode!=CM_HEAT) @@ -1773,6 +1775,7 @@ void draw_parts(pixel *vid) blendpixel(vid, nx-1, ny+1, R, G, B, 112); } } + } } void render_signs(pixel *vid_buf) |
