Author: cazfi Date: Thu May 14 23:27:19 2015 New Revision: 29084 URL: http://svn.gna.org/viewcvs/freeciv?rev=29084&view=rev Log: Make sure that auto_arrange_worker() creates worker placement result for the correct city radius.
Based on report by Jacew See bug #23591 Modified: trunk/server/cityturn.c Modified: trunk/server/cityturn.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/cityturn.c?rev=29084&r1=29083&r2=29084&view=diff ============================================================================== --- trunk/server/cityturn.c (original) +++ trunk/server/cityturn.c Thu May 14 23:27:19 2015 @@ -304,8 +304,6 @@ } TIMING_LOG(AIT_CITIZEN_ARRANGE, TIMER_START); - cmr = cm_result_new(pcity); - /* Freeze the workers and make sure all the tiles around the city * are up to date. Then thaw, but hackishly make sure that thaw * doesn't call us recursively, which would waste time. */ @@ -365,6 +363,9 @@ cmp.minimal_surplus[O_LUXURY] = 0; cmp.minimal_surplus[O_SCIENCE] = 0; + /* This must be after city_refresh() so that the result gets created for the right + * city radius */ + cmr = cm_result_new(pcity); cm_query_result(pcity, &cmp, cmr); if (!cmr->found_a_valid) { _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits