diff options
author | tron <tron@openttd.org> | 2006-03-17 10:10:31 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-17 10:10:31 +0000 |
commit | 7b1c7c31fb65c3727b85907230d02c2a0a77f405 (patch) | |
tree | 0fa3ce74d133cc13b1aaf01d162e59d16ce3371e /rail_cmd.c | |
parent | e1abce7082b7227c7e889c487cd559c1b4e5bf1e (diff) | |
download | openttd-7b1c7c31fb65c3727b85907230d02c2a0a77f405.tar.xz |
(svn r3916) Get/Set the rail type by [GS]etRailType{Crossing,OnBridge,}()
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index f7d6d22b3..8b3473bd1 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -317,7 +317,7 @@ int32 CmdBuildSingleRail(int x, int y, uint32 flags, uint32 p1, uint32 p2) } if (m5 & RAIL_TYPE_SPECIAL || !IsTileOwner(tile, _current_player) || - GB(_m[tile].m3, 0, 4) != p1) { + GetRailType(tile) != p1) { // Get detailed error message return DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); } @@ -944,7 +944,7 @@ static int32 DoConvertRail(TileIndex tile, uint totype, bool exec) // change type. if (exec) { - SB(_m[tile].m3, 0, 4, totype); + SetRailType(tile, totype); MarkTileDirtyByTile(tile); } |