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 /disaster_cmd.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 'disaster_cmd.c')
-rw-r--r-- | disaster_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c index c83c03920..6bf0b0d51 100644 --- a/disaster_cmd.c +++ b/disaster_cmd.c @@ -25,7 +25,7 @@ static void DisasterClearSquare(TileIndex tile) switch (GetTileType(tile)) { case MP_RAILWAY: - if (IS_HUMAN_PLAYER(GetTileOwner(tile)) && !IsRailWaypoint(_m[tile].m5)) DoClearSquare(tile); + if (IS_HUMAN_PLAYER(GetTileOwner(tile)) && !IsRailWaypoint(tile)) DoClearSquare(tile); break; case MP_HOUSE: { |