X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=ai.c;h=1e70f2a72c84f7865cdac3cf46ee27abf62d8c2c;hp=291c2f7bc99c6799b9ec3d8aa2fa55c7171161dd;hb=3997c103ce06a0e1f689a1b542daa68c523d1c5d;hpb=7de1f930478a9efcc3f093eb62414ec18d396f7b diff --git a/ai.c b/ai.c index 291c2f7..1e70f2a 100644 --- a/ai.c +++ b/ai.c @@ -378,7 +378,7 @@ void scom(int *ipage) #endif /* Decide on being active or passive */ - flag = ((game.state.killc+game.state.killk)/(game.state.date+0.01-indate) < 0.1*skill*(skill+1.0) || + flag = ((NKILLC+NKILLK)/(game.state.date+0.01-indate) < 0.1*skill*(skill+1.0) || (game.state.date-indate) < 3.0); if (iscate==0 && flag) { /* compute move away from Enterprise */