- npdead = num - nrmdead*10;
- if (npdead) {
- int loop;
- for (loop = 0; loop < game.inplan; loop++)
- if (same(game.state.planets[loop].w, nq)) {
- game.state.planets[loop].pclass = destroyed;
- }
+ /* Destroy planets */
+ for (loop = 0; loop < game.inplan; loop++) {
+ if (same(game.state.planets[loop].w, nq)) {
+ game.state.planets[loop].pclass = destroyed;
+ npdead++;
+ }