summaryrefslogtreecommitdiff
path: root/src/npf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/npf.cpp')
-rw-r--r--src/npf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/npf.cpp b/src/npf.cpp
index af42bcb9e..8fdc97fe8 100644
--- a/src/npf.cpp
+++ b/src/npf.cpp
@@ -40,8 +40,8 @@ static const uint _trackdir_length[TRACKDIR_END] = {
*/
static uint NPFDistanceTrack(TileIndex t0, TileIndex t1)
{
- const uint dx = delta(TileX(t0), TileX(t1));
- const uint dy = delta(TileY(t0), TileY(t1));
+ const uint dx = Delta(TileX(t0), TileX(t1));
+ const uint dy = Delta(TileY(t0), TileY(t1));
const uint straightTracks = 2 * min(dx, dy); /* The number of straight (not full length) tracks */
/* OPTIMISATION: