Skip to content

Commit

Permalink
Merge branch 'master' of github.com:wesnoth/wesnoth
Browse files Browse the repository at this point in the history
  • Loading branch information
AI0867 committed Mar 24, 2014
2 parents 1c73372 + 89e1eba commit d79b7d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/menu_events.cpp
Expand Up @@ -693,7 +693,11 @@ void menu_handler::recall(int side_num, const map_location &last_hex)
if (res < 0) {
return;
}
else if(recall_list_team[res]->recall_cost() < 0) {
// we need to check if unit has a specific recall cost
// if it does we use it elsewise we use the team.recall_cost()
// the magic number -1 is what it gets set to if the unit doesn't
// have a special recall_cost of its own.
else if(recall_list_team[res]->recall_cost() > -1) {
unit_cost = recall_list_team[res]->recall_cost();
}

Expand Down

0 comments on commit d79b7d6

Please sign in to comment.