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

« back to all changes in this revision

Viewing changes to src/road.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: road.cpp 15454 2009-02-11 20:41:17Z rubidium $ */
 
1
/* $Id: road.cpp 16324 2009-05-16 20:29:53Z rubidium $ */
2
2
 
3
3
/** @file road.cpp Generic road related functions. */
4
4
 
18
18
bool IsPossibleCrossing(const TileIndex tile, Axis ax)
19
19
{
20
20
        return (IsTileType(tile, MP_RAILWAY) &&
21
 
                !HasSignals(tile) &&
 
21
                GetRailTileType(tile) == RAIL_TILE_NORMAL &&
22
22
                GetTrackBits(tile) == (ax == AXIS_X ? TRACK_BIT_Y : TRACK_BIT_X) &&
23
23
                GetFoundationSlope(tile, NULL) == SLOPE_FLAT);
24
24
}