mail[Wesnoth-commits] r43467 - in /trunk/src/ai/formula: callable_objects.cpp callable_objects.hpp function_table.cpp


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

Header


Content

Posted by alinktomine on June 15, 2010 - 23:22:
Author: alink
Date: Tue Jun 15 23:22:22 2010
New Revision: 43467

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43467&view=rev
Log:
Remove now useless parameter

Modified:
    trunk/src/ai/formula/callable_objects.cpp
    trunk/src/ai/formula/callable_objects.hpp
    trunk/src/ai/formula/function_table.cpp

Modified: trunk/src/ai/formula/callable_objects.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/formula/callable_objects.cpp?rev=43467&r1=43466&r2=43467&view=diff
==============================================================================
--- trunk/src/ai/formula/callable_objects.cpp (original)
+++ trunk/src/ai/formula/callable_objects.cpp Tue Jun 15 23:22:22 2010
@@ -110,7 +110,7 @@
 }
 
 
-attack_callable::attack_callable(const ai::formula_ai& /*ai*/, const 
map_location& move_from,
+attack_callable::attack_callable(const map_location& move_from,
                                    const map_location& src, const 
map_location& dst, int weapon)
        : move_from_(move_from), src_(src), dst_(dst),
        bc_(*resources::units, src, dst, weapon, -1, 1.0, NULL,
@@ -211,7 +211,7 @@
                    unit->invisible(unit->get_location(), units_, 
ai_.get_info().teams))
                        continue;
                /* add attacks with default weapon */
-               attack_callable* item = new attack_callable(ai_, 
attacker_location, attack_position, adj[n], -1);
+               attack_callable* item = new 
attack_callable(attacker_location, attack_position, adj[n], -1);
                vars.push_back(variant(item));
        }
 }

Modified: trunk/src/ai/formula/callable_objects.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/formula/callable_objects.hpp?rev=43467&r1=43466&r2=43467&view=diff
==============================================================================
--- trunk/src/ai/formula/callable_objects.hpp (original)
+++ trunk/src/ai/formula/callable_objects.hpp Tue Jun 15 23:22:22 2010
@@ -52,7 +52,7 @@
 
        void get_inputs(std::vector<game_logic::formula_input>* inputs) const;
 public:
-       attack_callable(const ai::formula_ai& ai, const map_location& 
move_from,
+       attack_callable(const map_location& move_from,
                            const map_location& src, const map_location& dst, 
int weapon);
 
        const map_location& move_from() const { return move_from_; }

Modified: trunk/src/ai/formula/function_table.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/formula/function_table.cpp?rev=43467&r1=43466&r2=43467&view=diff
==============================================================================
--- trunk/src/ai/formula/function_table.cpp (original)
+++ trunk/src/ai/formula/function_table.cpp Tue Jun 15 23:22:22 2010
@@ -1200,7 +1200,7 @@
                        ERR_AI << "AI ERROR: Formula produced illegal attack: 
" << move_from << " -> " << src << " -> " << dst << "\n";
                        return variant();
                }
-               return variant(new attack_callable(ai_, move_from, src, dst, 
weapon));
+               return variant(new attack_callable(move_from, src, dst, 
weapon));
        }
 
        const formula_ai& ai_;




Related Messages


Powered by MHonArc, Updated Tue Jun 15 23:40:13 2010