mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r2409) Missed one _map_owner -> IsTileOwner()
This commit is contained in:
parent
74541c1dcc
commit
c2e977a0b8
@ -338,7 +338,7 @@ int32 CmdBuildSingleRail(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
return CMD_ERROR;
|
return CMD_ERROR;
|
||||||
}
|
}
|
||||||
if (m5 & RAIL_TYPE_SPECIAL ||
|
if (m5 & RAIL_TYPE_SPECIAL ||
|
||||||
_map_owner[tile] != _current_player ||
|
!IsTileOwner(tile, _current_player) ||
|
||||||
(_map3_lo[tile] & 0xFU) != p1) {
|
(_map3_lo[tile] & 0xFU) != p1) {
|
||||||
// Get detailed error message
|
// Get detailed error message
|
||||||
return DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
|
return DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
|
||||||
|
Loading…
Reference in New Issue
Block a user