Author: sveinung
Date: Wed Feb 18 11:56:46 2015
New Revision: 28206

URL: http://svn.gna.org/viewcvs/freeciv?rev=28206&view=rev
Log:
Explain when a unit can't act because it isn't being transported.

See patch #5828

Modified:
    branches/S2_6/server/unithand.c

Modified: branches/S2_6/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/unithand.c?rev=28206&r1=28205&r2=28206&view=diff
==============================================================================
--- branches/S2_6/server/unithand.c     (original)
+++ branches/S2_6/server/unithand.c     Wed Feb 18 11:56:46 2015
@@ -485,6 +485,14 @@
     notify_player(pplayer, unit_tile(punit), E_BAD_COMMAND, ftc_server,
                   _("This unit is being transported, and"
                     " so cannot act."));
+  } else if (!unit_transported(punit)
+             && !can_unit_act_when_ustate_is(unit_type(punit),
+                                             USP_TRANSPORTED, FALSE)) {
+    /* Explaination: not being transported. */
+
+    notify_player(pplayer, unit_tile(punit), E_BAD_COMMAND, ftc_server,
+                  _("This unit cannot act when it isn't being "
+                    "transported."));
   } else if ((must_war_player = need_war_player(punit,
                                                 target_tile,
                                                 target_city,


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

Reply via email to