Potential Fix for PSCN an A-RAY

This commit is contained in:
Simon
2010-12-06 19:51:49 +00:00
parent ae828393ce
commit e629908945

View File

@@ -1841,7 +1841,8 @@ void update_particles_i(pixel *vid, int start, int inc)
parts[nr].tmp = 2;
parts[nr].life = 2;
}
} else if(parts[r>>8].type==PT_BRAY&&parts[r>>8].tmp==0&&!destroy){
} else if(!((r>>8)>=NPART || !r)) {
if(parts[r>>8].type==PT_BRAY&&parts[r>>8].tmp==0&&!destroy){
if(nyy!=0 || nxx!=0){
parts[r>>8].type = PT_BRAY;
parts[r>>8].life = 1020;
@@ -1862,6 +1863,7 @@ void update_particles_i(pixel *vid, int start, int inc)
}
}
}
}
//parts[i].life = 4;
}
}