static void explosions_update_all (void) { int i, j; for (i = 0; i < NUM_EXPLOSIONS; i++) { for (j = 0; j < NUM_PARTICLES; j++) { if (explosions[i][j].active == 1) { explosion_update (i, j); } } } }
void explosions_update() { register unsigned int ei; for (ei = 0;ei < EXPLOSION_AMOUNT;ei++) if (explosions[ei].used == EXPLOSION_USED) explosion_update(&explosions[ei]); }