[Freeciv-Dev] (PR#14561) Spaceship scores not being added
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14561 >
> [jdorje - Wed Dec 28 03:22:01 2005]:
>
> > [per - Tue Dec 27 13:11:18 2005]:
> >
> > Fixed for HEAD only (the danger of adding new problems outweighed IMHO
> > the benefit of fixing of it in S2_0).
> >
>
> This is a safer way that will hopefully work around the problem for
> S2_0. Please test.
>
> -jason
>
>
Index: server/spacerace.c
===================================================================
--- server/spacerace.c (revision 11386)
+++ server/spacerace.c (working copy)
@@ -363,6 +363,10 @@
if (best_pplayer) {
best_pplayer->spaceship.state = SSHIP_ARRIVED;
server_state = GAME_OVER_STATE;
+
+ /* HACK: scores are not recalculated afterwards, so we do it here. */
+ calc_civ_score(best_pplayer);
+
notify_player_ex(NULL, NULL, E_SPACESHIP,
_("Game: The %s spaceship has arrived "
"at Alpha Centauri."),
|
|