Author: jtn Date: Mon May 30 12:53:14 2016 New Revision: 32777 URL: http://svn.gna.org/viewcvs/freeciv?rev=32777&view=rev Log: Initialize city did_buy to FALSE.
It's not necessary, and fixes a bug where you couldn't change production in a city after disbanding a unit there the same turn the city was built. Reported by fomalhaut on the forums. See gna bug #24714. Modified: branches/S2_5/common/city.c Modified: branches/S2_5/common/city.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/common/city.c?rev=32777&r1=32776&r2=32777&view=diff ============================================================================== --- branches/S2_5/common/city.c (original) +++ branches/S2_5/common/city.c Mon May 30 12:53:14 2016 @@ -3129,8 +3129,7 @@ } output_type_iterate_end; pcity->turn_plague = -1; /* -1 = never */ - pcity->did_buy = TRUE; /* You cannot buy production same turn city is - * founded. */ + pcity->did_buy = FALSE; pcity->city_radius_sq = game.info.init_city_radius_sq; pcity->turn_founded = game.info.turn; pcity->turn_last_built = game.info.turn; _______________________________________________ Freeciv-commits mailing list Freecivemail@example.com https://mail.gna.org/listinfo/freeciv-commits