X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fai.c;fp=src%2Fai.c;h=1ea8cfa288b329569b8a69a274067be432084ebc;hp=99024df9acddcd8b0c05c7ae222de6fad5ee2f9d;hb=2e04509ec9be1e3ad2a1f8a7e84552d6896f89ab;hpb=9ae916e9144e84ef1de4a86ea73a45a2bc4cc1be diff --git a/src/ai.c b/src/ai.c index 99024df..1ea8cfa 100644 --- a/src/ai.c +++ b/src/ai.c @@ -267,7 +267,7 @@ static void movebaddy(coord com, int loccom, feature ienm) } } -void movcom(void) +void moveklings(void) /* move a commander */ { coord w; @@ -351,10 +351,10 @@ 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 == present) { + if (same(game.state.planets[i].w, game.state.kscmdr) && + game.state.planets[i].crystals == present) { /* destroy the planet */ - DESTROY(&game.state.plnets[i]); + DESTROY(&game.state.planets[i]); game.state.galaxy[game.state.kscmdr.x][game.state.kscmdr.y].planet = NOPLANET; if (!damaged(DRADIO) || game.condition == docked) { if (!*ipage)