Another rollup patch.
[super-star-trek.git] / src / ai.c
index 733c62f83351b9540bb72a5b6f00e164ff264cbf..9d9da5db244a60cd4038cf2256c04fb791df2e41 100644 (file)
--- a/src/ai.c
+++ b/src/ai.c
@@ -231,7 +231,7 @@ static void movebaddy(coord com, int loccom, feature ienm)
        
     }
     if (idebug)
-       prout("");
+       skip(1);
     /* Put commander in place within same quadrant */
     game.quad[com.x][com.y] = IHDOT;
     game.quad[next.x][next.y] = ienm;
@@ -331,7 +331,7 @@ static bool movescom(coord iq, bool flag, bool *ipage)
     /* check for a helpful planet */
     for (i = 0; i < game.inplan; i++) {
        if (same(game.state.plnets[i].w, game.state.kscmdr) &&
-           game.state.plnets[i].crystals == 1) {
+           game.state.plnets[i].crystals == present) {
            /* destroy the planet */
            DESTROY(&game.state.plnets[i]);
            game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].planet = NOPLANET;