diff options
author | KUDr <kudr@openttd.org> | 2006-08-26 22:24:32 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2006-08-26 22:24:32 +0000 |
commit | 5a763f32a5e513f9d98b3c08622207f9f0b74fce (patch) | |
tree | 5e55df28300ef3b0de58d2f52052f7096df6d4b3 /yapf/follow_track.hpp | |
parent | 45fa3002088a914fe19ae59f0f4eef77f214e92e (diff) | |
download | openttd-5a763f32a5e513f9d98b3c08622207f9f0b74fce.tar.xz |
(svn r6160) -Fix [ 1519167 ] Bus trying to service in depot of other company (mart3p)
thanks Darkvater for hotfix (r5897)
Diffstat (limited to 'yapf/follow_track.hpp')
-rw-r--r-- | yapf/follow_track.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |