From 059e94e355c9172a42b70ff20b4b8a87dd4889ae Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 17 Apr 2008 18:24:45 +0000 Subject: (svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler function can be used --- src/yapf/yapf_destrail.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/yapf/yapf_destrail.hpp') diff --git a/src/yapf/yapf_destrail.hpp b/src/yapf/yapf_destrail.hpp index b666999c3..fab8400d1 100644 --- a/src/yapf/yapf_destrail.hpp +++ b/src/yapf/yapf_destrail.hpp @@ -43,7 +43,7 @@ public: /// Called by YAPF to detect if node ends in the desired destination FORCEINLINE bool PfDetectDestination(TileIndex tile, Trackdir td) { - bool bDest = IsDepotTypeTile(tile, TRANSPORT_RAIL); + bool bDest = IsRailDepotTile(tile); return bDest; } -- cgit v1.2.3-54-g00ecf