mirror of https://github.com/OpenTTD/OpenTTD
(svn r4670) - Backport from trunk (r4435):
In CmdRemoveRoad tiletype was not checked for ownership (heavily edited)release/0.4
parent
eb703a5768
commit
f7228e0b3a
|
@ -159,7 +159,7 @@ int32 CmdRemoveRoad(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
|||
|
||||
// owner for railroad crossing is stored somewhere else
|
||||
// XXX - Fix this so for a given tiletype the owner of the type is in the same variable
|
||||
owner = IsLevelCrossing(tile) ? _m[tile].m3 : GetTileOwner(tile);
|
||||
owner = (IsTileType(tile, MP_STREET) && IsLevelCrossing(tile)) ? _m[tile].m3 : GetTileOwner(tile);
|
||||
|
||||
if (owner == OWNER_TOWN && _game_mode != GM_EDITOR) {
|
||||
if (IsTileType(tile, MP_TUNNELBRIDGE)) { // index of town is not saved for bridge (no space)
|
||||
|
|
Loading…
Reference in New Issue