Author: sveinung
Date: Sun Aug  9 17:12:44 2015
New Revision: 29423

URL: http://svn.gna.org/viewcvs/freeciv?rev=29423&view=rev
Log:
orders system: support the "Help Wonder" action

See patch #6201

Modified:
    trunk/server/savecompat.c
    trunk/server/unithand.c

Modified: trunk/server/savecompat.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/savecompat.c?rev=29423&r1=29422&r2=29423&view=diff
==============================================================================
--- trunk/server/savecompat.c   (original)
+++ trunk/server/savecompat.c   Sun Aug  9 17:12:44 2015
@@ -1049,8 +1049,8 @@
       return ACTION_FOUND_CITY;
     }
   case ORDER_BUILD_WONDER:
-    /* TODO: Support ACTION_HELP_WONDER orders. */
-    return ACTION_COUNT;
+    /* Maps one to one with each other. */
+    return ACTION_HELP_WONDER;
   case ORDER_TRADE_ROUTE:
     /* TODO: Support ACTION_TRADE_ROUTE orders. */
     return ACTION_COUNT;

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=29423&r1=29422&r2=29423&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Sun Aug  9 17:12:44 2015
@@ -3644,6 +3644,7 @@
         }
         break;
       case ACTION_ESTABLISH_EMBASSY:
+      case ACTION_HELP_WONDER:
         /* Don't validate that the target tile really contains a city or
          * that the actor player's map think the target tile has one.
          * The player may target a city from its player map that isn't


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

Reply via email to