Author: cazfi
Date: Fri Oct 30 19:49:40 2015
New Revision: 30321

URL: http://svn.gna.org/viewcvs/freeciv?rev=30321&view=rev
Log:
Automatically place space parts that have not been placed during the entire 
turn after they have
been finished.

See bug #22934

Modified:
    branches/S2_6/server/srv_main.c

Modified: branches/S2_6/server/srv_main.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/srv_main.c?rev=30321&r1=30320&r2=30321&view=diff
==============================================================================
--- branches/S2_6/server/srv_main.c     (original)
+++ branches/S2_6/server/srv_main.c     Fri Oct 30 19:49:40 2015
@@ -129,6 +129,7 @@
 #include "advdata.h"
 #include "autosettlers.h"
 #include "advbuilding.h"
+#include "advspace.h"
 #include "infracache.h"
 
 /* ai */
@@ -1146,6 +1147,14 @@
   phase_players_iterate(pplayer) {
     do_tech_parasite_effect(pplayer);
     player_restore_units(pplayer);
+
+    /* If player finished spaceship parts last turn already, and didn't place 
them
+     * during this entire turn, autoplace them. */
+    if (adv_spaceship_autoplace(pplayer, &pplayer->spaceship)) {
+      notify_player(pplayer, NULL, E_SPACESHIP, ftc_server,
+                    _("Automatically placed spaceship parts that were still 
not placed."));
+    }
+
     update_city_activities(pplayer);
     pplayer->culture += nation_history_gain(pplayer);
     research_get(pplayer)->researching_saved = A_UNKNOWN;


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to