mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 10:50:49 +00:00
Converted the old style casts to c++ style casts.
This commit is contained in:
parent
6b7c9703f3
commit
100c05dda1
@ -2471,7 +2471,7 @@ void candidate_move::evaluate_move(const formula_ai* ai, unit_map& units,
|
||||
(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 @@ void candidate_move::evaluate_move(const formula_ai* ai, unit_map& units,
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user