Mercurial > hg > openttd
changeset 4269:736627cf5a21 draft
(svn r5897) -Fix [ 1519167 ] Bus trying to service in depot of other company (mart3p)
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Mon, 14 Aug 2006 22:23:13 +0000 |
parents | c87acd96bfb2 |
children | e6de1eec8332 |
files | yapf/yapf_road.cpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/yapf/yapf_road.cpp +++ b/yapf/yapf_road.cpp @@ -365,6 +365,7 @@ Node& n = Yapf().GetBestNode(); TileIndex depot_tile = n.m_segment_last_tile; assert(IsTileDepotType(depot_tile, TRANSPORT_ROAD)); + if (!IsTileOwner(depot_tile, (Owner)v->owner)) return false; Depot* ret = GetDepotByTile(depot_tile); return ret; }