~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/ai/api/ai_rail.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman
  • Date: 2009-06-09 21:46:28 UTC
  • mfrom: (1.1.7 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090609214628-6z5uodi6178z050l
[ Matthijs Kooijman ]
* New upstream release.
* Link against libicu to enable right-to-left language support. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: ai_rail.cpp 15711 2009-03-14 18:16:29Z rubidium $ */
 
1
/* $Id: ai_rail.cpp 16481 2009-05-31 12:18:03Z rubidium $ */
2
2
 
3
3
/** @file ai_rail.cpp Implementation of AIRail. */
4
4
 
110
110
{
111
111
        if (!IsRailStationTile(tile)) return RAILTRACK_INVALID;
112
112
 
113
 
        return (RailTrack)::GetRailStationTrack(tile);
 
113
        return (RailTrack)::GetRailStationTrackBits(tile);
114
114
}
115
115
 
116
116
/* static */ bool AIRail::BuildRailDepot(TileIndex tile, TileIndex front)
203
203
        if (IsRailWaypointTile(tile)) return ::GetRailWaypointBits(tile);
204
204
        if (IsRailStationTile(tile)) return ::TrackToTrackBits(::GetRailStationTrack(tile));
205
205
        if (IsLevelCrossingTile(tile)) return ::GetCrossingRailBits(tile);
 
206
        if (IsRailDepotTile(tile)) return ::TRACK_BIT_NONE;
206
207
        return ::GetTrackBits(tile);
207
208
}
208
209