From: Stas Sergeev Date: Tue, 24 May 2005 17:51:35 +0000 (+0000) Subject: Fixed klingon count to avoid winning the game before all the klingons X-Git-Tag: 2.0~308 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=6cd94d4cc2906e2c02553c9005f28616c7067292;p=super-star-trek.git Fixed klingon count to avoid winning the game before all the klingons are destroyed. --- diff --git a/setup.c b/setup.c index 6ea71b5..40e610b 100644 --- a/setup.c +++ b/setup.c @@ -479,11 +479,11 @@ int choose(int needprompt) game.state.nscrem = (skill > SKILL_FAIR ? 1 : 0); game.state.remtime = 7.0 * length; intime = game.state.remtime; - game.state.remkl = 2.0*intime*((skill+1 - 2*Rand())*skill*0.1+.15); - inkling = game.state.remkl; + inkling = 2.0*intime*((skill+1 - 2*Rand())*skill*0.1+.15); incom = skill + 0.0625*inkling*Rand(); game.state.remcom= min(10, incom); incom = game.state.remcom; + game.state.remkl = inkling + incom + game.state.nscrem; game.state.remres = (inkling+4*incom)*intime; inresor = game.state.remres; if (inkling > 50) {