Author: sveinung
Date: Wed Mar  1 11:19:34 2017
New Revision: 35072

URL: http://svn.gna.org/viewcvs/freeciv?rev=35072&view=rev
Log:
Improve explanation for tile targeted actions.

A tile targeted action may be illegal because of the diplomatic relationship
the actor unit's owner has to the tile's owner. Have the processing of an
unit_do_action packet forward target tile owner information to the illegal
action handling.

See gna patch #8122

Modified:
    trunk/server/unithand.c

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=35072&r1=35071&r2=35072&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Wed Mar  1 11:19:34 2017
@@ -2257,7 +2257,8 @@
     return action_performer;                                              \
   } else {                                                                \
     illegal_action(pplayer, actor_unit, action_type,                      \
-                   NULL, target_tile, NULL, NULL,                         \
+                   target_tile ? tile_owner(target_tile) : NULL,          \
+                   target_tile, NULL, NULL,                               \
                    requester);                                            \
   }
 


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

Reply via email to