changeset 9490 | 01c07bde5e84 |
parent 9439 | c4e61c3f1d50 |
--- 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;