Author: jtn Date: Mon May 30 12:51:25 2016 New Revision: 32766 URL: http://svn.gna.org/viewcvs/freeciv?rev=32766&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: trunk/common/city.c Modified: trunk/common/city.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/city.c?rev=32766&r1=32765&r2=32766&view=diff ============================================================================== --- trunk/common/city.c (original) +++ trunk/common/city.c Mon May 30 12:51:25 2016 @@ -3248,8 +3248,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 Freecivfirstname.lastname@example.org https://mail.gna.org/listinfo/freeciv-commits