changeset 10913 | af60a6eda0a0 |
parent 10806 | f3fc164fc538 |
--- a/src/yapf/yapf_ship.cpp Wed Jun 11 12:46:28 2008 +0000 +++ b/src/yapf/yapf_ship.cpp Wed Jun 11 13:54:01 2008 +0000 @@ -109,6 +109,9 @@ /* new trackdir does not match the next one when going straight */ c += 10; } + + c += YAPF_TILE_LENGTH * tf->m_tiles_skipped; + // apply it n.m_cost = n.m_parent->m_cost + c; return true;