Author: cazfi Date: Fri Oct 30 19:49:46 2015 New Revision: 30322 URL: http://svn.gna.org/viewcvs/freeciv?rev=30322&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_5/server/srv_main.c Modified: branches/S2_5/server/srv_main.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/srv_main.c?rev=30322&r1=30321&r2=30322&view=diff ============================================================================== --- branches/S2_5/server/srv_main.c (original) +++ branches/S2_5/server/srv_main.c Fri Oct 30 19:49:46 2015 @@ -126,6 +126,7 @@ #include "advdata.h" #include "autosettlers.h" #include "advbuilding.h" +#include "advspace.h" #include "infracache.h" #include "srv_main.h" @@ -1056,6 +1057,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); player_research_get(pplayer)->researching_saved = A_UNKNOWN; /* reduce the number of bulbs by the amount needed for tech upkeep and _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits