Correct minor bug in figure-of-merit scoring.
[super-star-trek.git] / src / finish.c
index 42333d5fdad2d6040ebe2ed6c12c27d4e0aaaadb..142fd9bb68623af227b0a165ee7e64262759e971 100644 (file)
@@ -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)