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

On 1/16/07, Marko Lindqvist <[EMAIL PROTECTED]> wrote:
>
>  $subject

 Fix

 - ML

diff -Nurd -X.diff_ignore freeciv/server/edithand.c freeciv/server/edithand.c
--- freeciv/server/edithand.c	2006-07-17 23:56:55.000000000 +0300
+++ freeciv/server/edithand.c	2007-01-19 17:28:11.000000000 +0200
@@ -125,7 +125,9 @@
     struct city *homecity
       = player_find_city_by_id(pplayer, packet->homecity);
 
-    if (is_non_allied_unit_tile(ptile, pplayer)) {
+    if (is_non_allied_unit_tile(ptile, pplayer)
+        || (ptile->city
+            && !pplayers_allied(pplayer, city_owner(ptile->city)))) {
       notify_player(pplayer, ptile, E_BAD_COMMAND,
                     _("Cannot create unit on enemy tile."));
       return;
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to