<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39431 >

On Wed, 2007-07-04 at 02:47 -0700, William Allen Simpson wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=39431 >
> 
> Timothy Brownawell wrote:
> > If I try to add a settler to an existing city, the game ends (retuns to
> > the welcome screen) and prints "2: lost connection to server".
> > 
> I am unable to duplicate this S2_1 behavior.  Do you have a savegame?
> 
> My test was simple: start a new default game, build the first city, use
> the second settler to 'b' add to city.

That will trigger the error reliably for me.

...after playing with GDB for a while, I have a patch which fixes this:


$ svn diff
Index: server/unithand.c
===================================================================
--- server/unithand.c   (revision 13050)
+++ server/unithand.c   (working copy)
@@ -483,12 +483,12 @@
   /* Make the new people something, otherwise city fails the checks */
   pcity->specialists[DEFAULT_SPECIALIST] +=
unit_pop_value(unit_type(punit));
   auto_arrange_workers(pcity);
-  wipe_unit(punit);
-  send_city_info(NULL, pcity);
   notify_player(pplayer, pcity->tile, E_CITY_BUILD,
                   _("%s added to aid %s in growing."),
                   unit_name_translation(punit),
                   pcity->name);
+  wipe_unit(punit);
+  send_city_info(NULL, pcity);
 }
 
 /**************************************************************************




_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to