Author: sveinung Date: Thu Mar 5 13:48:34 2015 New Revision: 28413 URL: http://svn.gna.org/viewcvs/freeciv?rev=28413&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: 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=28413&r1=28412&r2=28413&view=diff ============================================================================== --- branches/S2_6/server/unithand.c (original) +++ branches/S2_6/server/unithand.c Thu Mar 5 13:48:34 2015 @@ -2886,6 +2886,7 @@ case ACTIVITY_MINE: case ACTIVITY_IRRIGATE: case ACTIVITY_TRANSFORM: + case ACTIVITY_CONVERT: /* Simple activities. */ break; case ACTIVITY_FORTIFYING: @@ -2906,7 +2907,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