line for portals. wifi channels reset on reload.
This commit is contained in:
parent
c7f1e2e423
commit
cc4489ff29
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user