Use YAPF rail segment cache when cost-limited
commit0c40481d55200d403ac5fca9ea301dc10107f7d7
authorcirdan <cirdansw@gmail.com>
Fri, 26 May 2017 18:52:56 +0000 (26 20:52 +0200)
committercirdan <cirdansw@gmail.com>
Fri, 26 May 2017 18:52:56 +0000 (26 20:52 +0200)
tree261037fb518a2014a634512308927214e1f0a333
parent010e6b2b74ac25350adddfa68cef088d203e2263
Use YAPF rail segment cache when cost-limited

The comment at the top of CYapfRailBase::CalcNode stated that the
intent was to use of the segment cache if a maximum cost was set
for those segments that were already cached and below that cost,
but the code unconditionally disabled the cache whenever there was
a maximum cost. The code has been changed to match the intent.
src/pathfinder/yapf/yapf_rail.cpp