Author: sveinung
Date: Thu Mar  5 13:48:26 2015
New Revision: 28412

URL: http://svn.gna.org/viewcvs/freeciv?rev=28412&view=rev
Log:
Allow the orders system to make a unit convert to another unit kind.

This is only server side support. The ability to convert at various
positions in a list of orders was tested by hard coding a list of orders
(convert, action move north, convert, action move north, convert). Code to
make the client side goto handling convert a unit if its current unit type
is unable to cross terrain its converted type is able to cross wasn't
written.

See patch #5885

Modified:
    trunk/server/unithand.c

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=28412&r1=28411&r2=28412&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Thu Mar  5 13:48:26 2015
@@ -2935,6 +2935,7 @@
       case ACTIVITY_MINE:
       case ACTIVITY_IRRIGATE:
       case ACTIVITY_TRANSFORM:
+      case ACTIVITY_CONVERT:
        /* Simple activities. */
        break;
       case ACTIVITY_FORTIFYING:
@@ -2955,7 +2956,6 @@
         }
         break;
       /* Not supported yet. */
-      case ACTIVITY_CONVERT:
       case ACTIVITY_EXPLORE:
       case ACTIVITY_IDLE:
       /* Not set from the client. */


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

Reply via email to