- if((edot[i].life -= t_frame*3)<0 || edot[i].y<0 || edot[i].y>YSIZE) {
- edot[i].active = 0;
- } else if(edot[i].x<0 || edot[i].x>XSIZE) {
+ edot[i].life -= t_frame*3;
+ if(edot[i].life < 0
+ || edot[i].y<0 || edot[i].y >= YSIZE
+ || edot[i].x<0 || edot[i].x >= XSIZE) {