diff options
author | truelight <truelight@openttd.org> | 2005-11-16 14:41:01 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-11-16 14:41:01 +0000 |
commit | c1b012171d2a0db4702af7f2b1616a2139e98dcd (patch) | |
tree | 214102297a7345bf5d6cf0849e439481b6c5fb1a /waypoint.c | |
parent | b739674307ee32880100387e8b05d7307f4a696f (diff) | |
download | openttd-c1b012171d2a0db4702af7f2b1616a2139e98dcd.tar.xz |
(svn r3210) -Codechange: use IsRailWaypoint where possible (instead of magicnumbers)
-Codechange: IsRailWaypoint should take 'tile', not 'm5'
Diffstat (limited to 'waypoint.c')
-rw-r--r-- | waypoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/waypoint.c b/waypoint.c index fd5c10e75..60b6c8735 100644 --- a/waypoint.c +++ b/waypoint.c @@ -261,7 +261,7 @@ int32 RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove) Waypoint *wp; /* Make sure it's a waypoint */ - if (!IsTileType(tile, MP_RAILWAY) || !IsRailWaypoint(_m[tile].m5)) + if (!IsTileType(tile, MP_RAILWAY) || !IsRailWaypoint(tile)) return CMD_ERROR; if (!CheckTileOwnership(tile) && !(_current_player == OWNER_WATER)) |