X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=src%2Fai.c;h=e0bfb08ad50cfce872446ef883a982a1faa579e1;hp=31d19ad13bdcf06293ab473679a9abfc09a817a5;hb=e4ddd3649bf73ddd7a1e2bb32e7ce2e631293068;hpb=b40eba51deeb13f362e95416c005156be4104067 diff --git a/src/ai.c b/src/ai.c index 31d19ad..e0bfb08 100644 --- a/src/ai.c +++ b/src/ai.c @@ -389,7 +389,7 @@ void supercommander(void) prout("== SUPERCOMMANDER"); /* Decide on being active or passive */ - avoid = ((NKILLC+NKILLK)/(game.state.date+0.01-game.indate) < 0.1*game.skill*(game.skill+1.0) || + avoid = ((game.incom - game.state.remcom + game.inkling - game.state.remkl)/(game.state.date+0.01-game.indate) < 0.1*game.skill*(game.skill+1.0) || (game.state.date-game.indate) < 3.0); if (!game.iscate && avoid) { /* compute move away from Enterprise */