Author: jtn
Date: Mon May 30 12:52:21 2016
New Revision: 32772

URL: http://svn.gna.org/viewcvs/freeciv?rev=32772&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_6/common/city.c

Modified: branches/S2_6/common/city.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/city.c?rev=32772&r1=32771&r2=32772&view=diff
==============================================================================
--- branches/S2_6/common/city.c (original)
+++ branches/S2_6/common/city.c Mon May 30 12:52:21 2016
@@ -3098,8 +3098,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
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to