300
300
if (GetRailTileType(tile) == RAIL_TILE_WAYPOINT) {
301
302
if (!(flags & SF_TRAIN) && VehicleFromPos(tile, NULL, &TrainOnTileEnum)) flags |= SF_TRAIN;
302
303
tile += TileOffsByDiagDir(exitdir);
303
304
/* enterdir and exitdir stay the same */