From cd1ad247231e98e83298943ac661af0990058cf9 Mon Sep 17 00:00:00 2001 From: truelight Date: Wed, 16 Nov 2005 14:41:01 +0000 Subject: (svn r3210) -Codechange: use IsRailWaypoint where possible (instead of magicnumbers) -Codechange: IsRailWaypoint should take 'tile', not 'm5' --- waypoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'waypoint.c') 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)) -- cgit v1.2.3-54-g00ecf