(svn r6160) -Fix [ 1519167 ] Bus trying to service in depot of other company (mart3p)

thanks Darkvater for hotfix (r5897)
This commit is contained in:
KUDr
2006-08-26 22:24:32 +00:00
parent 4f00dd7400
commit 0fa65dd6f3
2 changed files with 6 additions and 3 deletions

View File

@@ -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);