Avoid checking for destination twice in CYapfRoadT
commit35b054744b1e54ba48076ae5601e170baed0bdd3
authorcirdan <cirdansw@gmail.com>
Sat, 1 Feb 2014 08:05:57 +0000 (1 09:05 +0100)
committercirdan <cirdansw@gmail.com>
Sat, 1 Feb 2014 08:05:57 +0000 (1 09:05 +0100)
tree455d0a09562e1f531d315fed54f68c7370c08bd8
parentf489b4db3b9c690690ec166692da72eafea1d957
Avoid checking for destination twice in CYapfRoadT

The check for a destination tile for road vehicles can be somewhat
expensive, so record whether the inner segment loop in
CYapfRoadT::PfFollowNode is broken out from because a destination
is found, to avoid repeating the check later.
src/pathfinder/yapf/yapf_road.cpp