[Freeciv-Dev] Re: (PR#6695) nuclear causes core
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sat, Nov 01, 2003 at 03:18:47AM -0800, Per I. Mathisen wrote:
>
> On Thu, 30 Oct 2003, Paul Zastoupil wrote:
> > I think any nuclear detonation on a city will cause a core in current
> > HEAD.
>
> Yep. Patch attached.
> - if (pcity->size > 1) { /* size zero cities are ridiculous -- Syela */
> - pcity->size /= 2;
> - auto_arrange_workers(pcity);
> - send_city_info(NULL, pcity);
> - }
> + city_reduce_size(pcity, pcity->size / 2);
> + auto_arrange_workers(pcity);
> + send_city_info(NULL, pcity);
IMHO the call to auto_arrange_workers is not needed.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"Python 2.0 beta 1 is now available [...]. There is a long list of new
features since Python 1.6, released earlier today. We don't plan on
any new releases in the next 24 hours."
-- Jeremy Hylton at Slashdot
|
|