From c00a400cc7e7626a430ed65d29a47c02a7a14eaa Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 11 Jan 2013 07:39:25 +0000 Subject: (svn r24905) -Feature(ish): Implement station randomisation triggers. --- src/pathfinder/yapf/yapf_rail.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pathfinder') diff --git a/src/pathfinder/yapf/yapf_rail.cpp b/src/pathfinder/yapf/yapf_rail.cpp index 48417b2b3..f66140046 100644 --- a/src/pathfinder/yapf/yapf_rail.cpp +++ b/src/pathfinder/yapf/yapf_rail.cpp @@ -17,6 +17,7 @@ #include "yapf_costrail.hpp" #include "yapf_destrail.hpp" #include "../../viewport_func.h" +#include "../../newgrf_station.h" #define DEBUG_YAPF_CACHE 0 @@ -83,6 +84,8 @@ private: tile = TILE_ADD(tile, diff); } while (IsCompatibleTrainStationTile(tile, start) && tile != m_origin_tile); + TriggerStationRandomisation(NULL, start, SRT_PATH_RESERVATION); + return true; } -- cgit v1.2.3-70-g09d2