author | tron |
Sat, 04 Jun 2005 12:14:51 +0000 | |
changeset 1903 | 232493e5b103 |
parent 1902 | 86b7fb11f938 |
child 1904 | 6459332eded4 |
rail_cmd.c | file | annotate | diff | comparison | revisions |
--- a/rail_cmd.c Sat Jun 04 12:13:24 2005 +0000 +++ b/rail_cmd.c Sat Jun 04 12:14:51 2005 +0000 @@ -338,7 +338,7 @@ return CMD_ERROR; } if (m5 & RAIL_TYPE_SPECIAL || - _map_owner[tile] != _current_player || + !IsTileOwner(tile, _current_player) || (_map3_lo[tile] & 0xFU) != p1) { // Get detailed error message return DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);