From 5a763f32a5e513f9d98b3c08622207f9f0b74fce Mon Sep 17 00:00:00 2001 From: KUDr Date: Sat, 26 Aug 2006 22:24:32 +0000 Subject: (svn r6160) -Fix [ 1519167 ] Bus trying to service in depot of other company (mart3p) thanks Darkvater for hotfix (r5897) --- yapf/follow_track.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'yapf/follow_track.hpp') diff --git a/yapf/follow_track.hpp b/yapf/follow_track.hpp index 2b22d4fe4..5bb3ad8ac 100644 --- a/yapf/follow_track.hpp +++ b/yapf/follow_track.hpp @@ -138,6 +138,10 @@ protected: DiagDirection exitdir = GetRoadDepotDirection(m_new_tile); if (ReverseDiagDir(exitdir) != m_exitdir) return false; + // don't try to enter other player's depots + if (GetTileOwner(m_new_tile) != m_veh->owner) { + return false; + } } if (IsRailTT() && IsTileDepotType(m_new_tile, TT())) { DiagDirection exitdir = GetRailDepotDirection(m_new_tile); -- cgit v1.2.3-70-g09d2