1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 09:09:09 +00:00

(svn r5066) -Feature: [YAPF] Train selects the best station platform by length

This commit is contained in:
KUDr
2006-06-01 21:39:35 +00:00
parent 76a8f036df
commit bd25f49d3f
7 changed files with 75 additions and 11 deletions

View File

@@ -89,7 +89,7 @@ public:
if (F.m_new_tile == n.m_key.m_tile && new_td == n.m_key.m_td) return false;
// if we skipped some tunnel tiles, add their cost
segment_cost += 10 * F.m_tunnel_tiles_skipped;
segment_cost += 10 * F.m_tiles_skipped;
// add hilly terrain penalty
segment_cost += Yapf().SlopeCost(tile, F.m_new_tile, trackdir);