diff options
| author | Jacob1 <jfu614@gmail.com> | 2012-03-15 00:44:17 (GMT) |
|---|---|---|
| committer | Jacob1 <jfu614@gmail.com> | 2012-03-15 00:44:17 (GMT) |
| commit | a27d97124cb985c5e064547e55b401bbb7ec01a1 (patch) | |
| tree | f82ca615fe2747748cd328894f21792d74a3957f /src/graphics.c | |
| parent | 4fcfb05f25d8f7b0edcf67c11ea6676ff0e0e047 (diff) | |
| download | powder-a27d97124cb985c5e064547e55b401bbb7ec01a1.zip powder-a27d97124cb985c5e064547e55b401bbb7ec01a1.tar.gz | |
wifi/portal lines
Diffstat (limited to 'src/graphics.c')
| -rw-r--r-- | src/graphics.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c index 2bfe422..080cb2a 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -2428,6 +2428,25 @@ void render_parts(pixel *vid) addpixel(vid, nx+nxo, ny+nyo, colr, colg, colb, 255-orbd[r]); } } + if ((pixel_mode & EFFECT_LINES) && DEBUG_MODE) + { + if (mousex==(nx) && mousey==(ny))//draw lines connecting wifi/portal channels + { + int z; + int type = parts[i].type; + if (type == PT_PRTI) + type = PT_PRTO; + else if (type == PT_PRTO) + type = PT_PRTI; + for (z = 0; z<NPART; z++) { + if (parts[z].type) + { + if (parts[z].type==type&&parts[z].tmp==parts[i].tmp) + xor_line(nx,ny,(int)(parts[z].x+0.5f),(int)(parts[z].y+0.5f),vid); + } + } + } + } //Fire effects if(firea && (pixel_mode & FIRE_BLEND)) { |
