X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fai.c;h=e524a8e09ec8e5c9324b4e74c1525837328a268d;hp=4b73b7488e190009efc01578eb494ee156b3db5f;hb=cd1ac5957730cc1646ba29e2252c35d213b3557a;hpb=a0afd227763655ee0ecd7ef5faea92d63d5c5ba6 diff --git a/src/ai.c b/src/ai.c index 4b73b74..e524a8e 100644 --- a/src/ai.c +++ b/src/ai.c @@ -28,7 +28,7 @@ static bool tryexit(int lookx, int looky, int ienm, int loccom, int irun) We know this if either short or long range sensors are working */ if (!damaged(DSRSENS) || !damaged(DLRSENS) || game.condit == IHDOCKED) { - crmena(1, ienm, 2, game.ks[loccom]); + crmena(1, ienm, sector, game.ks[loccom]); prout(_(" escapes to %s (and regains strength)."), cramlc(quadrant, iq)); } @@ -507,7 +507,7 @@ void scom(bool *ipage) (int)scheduled(FSCDBAS)); if (!game.resting) return; prout(_("Mr. Spock- \"Captain, shall we cancel the rest period?\"")); - if (ja()==0) return; + if (ja() == false) return; game.resting = false; game.optime = 0.0; /* actually finished */ return; @@ -588,7 +588,7 @@ void movetho(void) /* All plugged up -- Tholian splits */ game.quad[game.tholian.x][game.tholian.y]=IHWEB; dropin(IHBLANK, &dummy); - crmena(1,IHT, 2, game.tholian); + crmena(true, IHT, sector, game.tholian); prout(_(" completes web.")); game.ithere = game.tholian.x = game.tholian.y = 0; game.nenhere--;