From: Eric S. Raymond Date: Wed, 4 Oct 2006 02:05:50 +0000 (+0000) Subject: Correct minor bug in figure-of-merit scoring. X-Git-Tag: 2.0~169 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=a27c68c255739be9a75e1468896ba6e4fdd95121;p=super-star-trek.git Correct minor bug in figure-of-merit scoring. Inhabited-planet kills weren't being figured in. Also make the code clearer. --- diff --git a/src/finish.c b/src/finish.c index 42333d5..142fd9b 100644 --- a/src/finish.c +++ b/src/finish.c @@ -90,8 +90,13 @@ void finish(FINTYPE ifin) game.gamewon = true; if (game.alive) { double badpt; - badpt = 5.0*game.state.starkl + game.casual + 10.0*game.state.nplankl + - 45.*game.nhelp+100.*game.state.basekl+3.*game.abandoned; + badpt = 5.0*game.state.starkl \ + + game.casual \ + + 10.0*game.state.nplankl \ + + 300.0*game.state.nworldkl \ + + 45.0*game.nhelp \ + + 100.0*game.state.basekl \ + + 3.0*game.abandoned; if (game.ship == IHF) badpt += 100.0; else if (game.ship == 0)