summaryrefslogtreecommitdiff
path: root/src
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
parentc7f1e2e423fea5772c3718e5b30f5bdd792267cc (diff)
downloadpowder-cc4489ff295923dd2c0a0bef8cfa4210a7041410.zip
powder-cc4489ff295923dd2c0a0bef8cfa4210a7041410.tar.gz
line for portals. wifi channels reset on reload.
Diffstat (limited to 'src')
-rw-r--r--src/graphics.c28
-rw-r--r--src/main.c4
2 files changed, 32 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;
diff --git a/src/main.c b/src/main.c
index 557673c..452103f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2123,6 +2123,10 @@ int main(int argc, char *argv[])
if(x>=19 && x<=35 && svf_last && svf_open && !bq){
//int tpval = sys_pause;
parse_save(svf_last, svf_lsize, 1, 0, 0);
+ for(j= 0;j<99;j++){ //reset wifi on reload
+ wireless[j][0] = 0;
+ wireless[j][1] = 0;
+ }
//sys_pause = tpval;
}
if(x>=(XRES+BARSIZE-(510-476)) && x<=(XRES+BARSIZE-(510-491)) && !bq)