mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 10:05:35 +00:00
Use a symbolic constant instead of a literal constant.
This commit is contained in:
parent
c2619963bc
commit
219fe1df0b
@ -1153,7 +1153,7 @@ private:
|
||||
}
|
||||
|
||||
for (std::vector<map_location>::const_iterator loc_iter = route.steps.begin() + 1 ; loc_iter !=route.steps.end(); ++loc_iter) {
|
||||
if (unit_it->movement_cost((*resources::game_map)[*loc_iter]) < 99 )
|
||||
if (unit_it->movement_cost((*resources::game_map)[*loc_iter]) < unit_movement_type::UNREACHABLE )
|
||||
locations.push_back( variant( new location_callable(*loc_iter) ));
|
||||
else
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user