mail[Wesnoth-commits] r28289 - /trunk/src/formula_ai.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by dragonking on July 31, 2008 - 23:39:
Author: dragonking
Date: Thu Jul 31 15:16:50 2008
New Revision: 28289

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28289&view=rev
Log:
Changed my_side to my_side_number and made my_side return team_callable

Modified:
    trunk/src/formula_ai.cpp

Modified: trunk/src/formula_ai.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/formula_ai.cpp?rev=28289&r1=28288&r2=28289&view=diff
==============================================================================
--- trunk/src/formula_ai.cpp (original)
+++ trunk/src/formula_ai.cpp Thu Jul 31 15:16:50 2008
@@ -1577,6 +1577,10 @@
 
        } else if(key == "my_side")
        {
+               return variant(new 
team_callable((*get_info().state.teams)[get_info().team_num-1]));
+       
+       } else if(key == "my_side_number")
+       {
                return variant(get_info().team_num-1);
 
        } else if(key == "teams")




Related Messages


Powered by MHonArc, Updated Fri Aug 01 00:41:44 2008