Author: sveinung
Date: Wed Mar  1 11:20:16 2017
New Revision: 35075

URL: http://svn.gna.org/viewcvs/freeciv?rev=35075&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:
    branches/S3_0/server/unithand.c

Modified: branches/S3_0/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/unithand.c?rev=35075&r1=35074&r2=35075&view=diff
==============================================================================
--- branches/S3_0/server/unithand.c     (original)
+++ branches/S3_0/server/unithand.c     Wed Mar  1 11:20:16 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