diff -r 13cb37e961f6 -r 23cfd330ccac src/rail_cmd.cpp --- a/src/rail_cmd.cpp Wed Apr 16 21:06:21 2008 +0000 +++ b/src/rail_cmd.cpp Thu Apr 17 00:44:20 2008 +0000 @@ -2268,7 +2268,7 @@ int length; /* this routine applies only to trains in depot tiles */ - if (v->type != VEH_TRAIN || !IsTileDepotType(tile, TRANSPORT_RAIL)) return VETSB_CONTINUE; + if (v->type != VEH_TRAIN || !IsDepotTypeTile(tile, TRANSPORT_RAIL)) return VETSB_CONTINUE; /* depot direction */ dir = GetRailDepotDirection(tile);