fixed one of two bugs that lead to infinite loop in AI Movement code,

...when AI tries to move A->A onimpassable terrain (happens on Dark
Forecast)
This commit is contained in:
Iurii Chernyi 2009-08-16 19:16:52 +00:00
parent 682aae09ff
commit 5de377fa56

View file

@ -394,6 +394,7 @@ bool move_result::test_route(const unit &un, const team &my_team, const unit_map
set_error(E_EMPTY_MOVE);
return false;
}
return true;
}
const shortest_path_calculator calc(un, my_team, units, teams,map);