(svn r3916) Get/Set the rail type by [GS]etRailType{Crossing,OnBridge,}()

This commit is contained in:
tron
2006-03-17 10:10:31 +00:00
parent d8677f1afa
commit 89090790c2
9 changed files with 68 additions and 51 deletions

View File

@@ -2562,7 +2562,7 @@ static bool CheckCompatibleRail(const Vehicle *v, TileIndex tile)
return
IsTileOwner(tile, v->owner) && (
!IsFrontEngine(v) ||
IsCompatibleRail(v->u.rail.railtype, GB(_m[tile].m4, 0, 4))
IsCompatibleRail(v->u.rail.railtype, GetRailTypeCrossing(tile))
);
default: