From a27c68c255739be9a75e1468896ba6e4fdd95121 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 4 Oct 2006 02:05:50 +0000 Subject: [PATCH] Correct minor bug in figure-of-merit scoring. Inhabited-planet kills weren't being figured in. Also make the code clearer. --- src/finish.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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) -- 2.31.1