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

On 1/14/07, Marko Lindqvist <[EMAIL PROTECTED]> wrote:
>
>  1. Insert city owned by somebody else in editor mode.
>  2. Start another client as owner of the created city.
>  3. Try to look at the city.
>
> civclient: ../../src.patched/client/citydlg_common.c:546:
> get_city_citizen_types: Assertion `i == pcity->size' failed.

 Actually problem is that client of the owner does not receive enough
information about the city. Revealing city tile seems to help. Patch
attached.


  - ML

diff -Nurd -X.diff_ignore freeciv/server/edithand.c freeciv/server/edithand.c
--- freeciv/server/edithand.c	2007-02-26 14:15:28.000000000 +0200
+++ freeciv/server/edithand.c	2007-03-02 02:02:51.000000000 +0200
@@ -198,6 +198,9 @@
     return;
   }
 
+  /* Reveal tile to city owner */
+  map_show_tile(pplayer, ptile);
+
   /* new city */
   create_city(pplayer, ptile, city_name_suggestion(pplayer, ptile));
   pcity = tile_get_city(ptile);
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to