From c2e977a0b80e7ca47ec258be467781d30c5c6ec1 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 4 Jun 2005 12:14:51 +0000 Subject: [PATCH] (svn r2409) Missed one _map_owner -> IsTileOwner() --- rail_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rail_cmd.c b/rail_cmd.c index 0b6a8fc92a..165985776f 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -338,7 +338,7 @@ int32 CmdBuildSingleRail(int x, int y, uint32 flags, uint32 p1, uint32 p2) 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);