More port fixes for the Python version.
[super-star-trek.git] / src / planets.c
index cc6b8bbfb29eddec8441f0d030ea83e8879289ae..e8ead07638782af4eeeb5613ae1d83ccad115144 100644 (file)
@@ -79,14 +79,16 @@ void sensor(void)
 /* examine planets in this quadrant */
 {
     if (damaged(DSRSENS)) {
-       prout(_("Short range sensors damaged."));
+       if (game.options & OPTION_TTY)
+           prout(_("Short range sensors damaged."));
        return;
     }
-    if (!is_valid(game.plnet) && (game.options & OPTION_TTY)) {
-       prout(_("Spock- \"No planet in this quadrant, Captain.\""));
+    if (!is_valid(game.plnet)) {
+       if (game.options & OPTION_TTY)
+           prout(_("Spock- \"No planet in this quadrant, Captain.\""));
        return;
     }
-    if (is_valid(game.plnet) && (game.state.planets[game.iplnet].known == unknown)) {
+    if (game.state.planets[game.iplnet].known == unknown) {
        prout(_("Spock-  \"Sensor scan for %s-"), cramlc(quadrant, game.quadrant));
        skip(1);
        prout(_("         Planet at %s is of class %s."),
@@ -155,7 +157,7 @@ void beam(void)
            prout(_("  Captain, we have enough energy only to transport you down to"));
            prout(_("  the planet, but there wouldn't be an energy for the trip back."));
            if (game.state.planets[game.iplnet].known == shuttle_down)
-               prout(_("  However, the Galileo shuttle craft may still be on a surface."));
+               prout(_("  Although the Galileo shuttle craft may still be on a surface."));
            proutn(_("  Are you sure this is wise?\" "));
            if (ja() == false) {
                chew();