X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=ai.c;h=1e70f2a72c84f7865cdac3cf46ee27abf62d8c2c;hb=2a83be50e15e057ac9237e5c9bf97bd6d395db39;hp=291c2f7bc99c6799b9ec3d8aa2fa55c7171161dd;hpb=642653333d23ce8ef84fafa213bb8a196ff21b0b;p=super-star-trek.git 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 */