summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-01-12 17:15:50 (GMT)
committer Cracker64 <cracker642@gmail.com>2011-01-12 17:15:50 (GMT)
commitcc4489ff295923dd2c0a0bef8cfa4210a7041410 (patch)
tree969fa284a2d64bbf906b11b4540deaad6e96f4c7 /src/graphics.c
parentc7f1e2e423fea5772c3718e5b30f5bdd792267cc (diff)
downloadpowder-cc4489ff295923dd2c0a0bef8cfa4210a7041410.zip
powder-cc4489ff295923dd2c0a0bef8cfa4210a7041410.tar.gz
line for portals. wifi channels reset on reload.
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index ef8fb15..121563b 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1834,6 +1834,34 @@ void draw_parts(pixel *vid)
}
}
}
+ else if(t==PT_PRTI && DEBUG_MODE)
+ {
+ if(mousex==(nx) && mousey==(ny))
+ {
+ int z;
+ for(z = 0; z<NPART; z++) {
+ if(parts[z].type)
+ {
+ if(parts[z].type==PT_PRTO&&parts[z].tmp==parts[i].tmp)
+ xor_line(nx,ny,(int)(parts[z].x+0.5f),(int)(parts[z].y+0.5f),vid);
+ }
+ }
+ }
+ }
+ else if(t==PT_PRTO && DEBUG_MODE)
+ {
+ if(mousex==(nx) && mousey==(ny))
+ {
+ int z;
+ for(z = 0; z<NPART; z++) {
+ if(parts[z].type)
+ {
+ if(parts[z].type==PT_PRTI&&parts[z].tmp==parts[i].tmp)
+ xor_line(nx,ny,(int)(parts[z].x+0.5f),(int)(parts[z].y+0.5f),vid);
+ }
+ }
+ }
+ }
else if((t==PT_BIZR||t==PT_BIZRG)&&parts[i].ctype)
{
cg = 0;