1
0
Fork 0

(svn r4670) - Backport from trunk (r4435):

In CmdRemoveRoad tiletype was not checked for ownership (heavily edited)
release/0.4
Darkvater 2006-05-02 13:25:03 +00:00
parent eb703a5768
commit f7228e0b3a
1 changed files with 1 additions and 1 deletions

View File

@ -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)