src/yapf/yapf_ship.cpp
branchNewGRF_ports
changeset 10994 cd9968b6f96b
parent 10991 d8811e327d12
--- a/src/yapf/yapf_ship.cpp	Tue Jun 17 10:32:49 2008 +0000
+++ b/src/yapf/yapf_ship.cpp	Tue Jun 17 13:22:13 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;