X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fplanets.c;h=8aba37c3f07288916d68f16720169a55c591169f;hp=e9cfcc2c7bb38180fd8bfc9d4ab1085e5a31e075;hb=2c5438d3c22fe863ad8054d214f2afdd061ad43a;hpb=cbb2d987e8c23c6c25bd441fdef5401d5a89289e diff --git a/src/planets.c b/src/planets.c index e9cfcc2..8aba37c 100644 --- a/src/planets.c +++ b/src/planets.c @@ -22,10 +22,11 @@ void survey(void) prout(_("Spock- \"Planet report follows, Captain.\"")); skip(1); for (i = 0; i < game.inplan; i++) { + if (game.state.planets[i].pclass == destroyed) + continue; if ((game.state.planets[i].known != unknown - && game.state.planets[i].inhabited == UNINHABITED) - || (idebug && game.state.planets[i].w.x !=0) - ) { + && game.state.planets[i].inhabited == UNINHABITED) + || idebug) { iknow = true; if (idebug && game.state.planets[i].known==unknown) proutn("(Unknown) "); @@ -499,8 +500,8 @@ void deathray(void) proutn(_("Spock- \"I believe the word is")); prouts(_(" *ASTONISHING*")); prout(_(" Mr. Sulu.")); - for_sectors(i) - for_sectors(j) + for (i = 1; i <= QUADSIZE; i++) + for (j = 1; j <= QUADSIZE; j++) if (game.quad[i][j] == IHDOT) game.quad[i][j] = IHQUEST; prout(_(" Captain, our quadrant is now infested with"));