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


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

Header


Content

Posted by koraq on March 29, 2009 - 22:30:
Author: mordante
Date: Sun Mar 29 22:29:59 2009
New Revision: 34251

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34251&view=rev
Log:
Converted the old style casts to c++ style casts.

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=34251&r1=34250&r2=34251&view=diff
==============================================================================
--- trunk/src/formula_ai.cpp (original)
+++ trunk/src/formula_ai.cpp Sun Mar 29 22:29:59 2009
@@ -2471,7 +2471,7 @@
                                                        
(ai->can_attack(me->first, target->first)) ) {
                                                 int res = -1000;
 
-                                               
game_logic::map_formula_callable callable((formula_callable*) ai);
+                                               
game_logic::map_formula_callable callable(static_cast<const 
formula_callable*>(ai));
                                                callable.add_ref();
                                                callable.add("me", 
variant(new unit_callable(*me)));
                                                callable.add("target", 
variant(new unit_callable(*target)));
@@ -2501,7 +2501,7 @@
                        if( (i->second.side() == team_num) &&
                                        (i->second.has_moved() == false) ) {
                                 int res = -1000;
-                               game_logic::map_formula_callable 
callable((formula_callable*) ai);
+                               game_logic::map_formula_callable 
callable(static_cast<const formula_callable*>(ai));
                                callable.add_ref();
                                callable.add("me", variant(new 
unit_callable(*i)));
                                 try {




Related Messages


Powered by MHonArc, Updated Sun Mar 29 22:40:41 2009