(svn r13233) -Fix: Replace some (incorrect) evaluations of TileOwner by RoadOwner.
-Fix: Before evaluating RoadOwner, check if the roadtype is present. -Fix: Some places assumed that MP_ROAD means normal street.
This commit is contained in:
@@ -3763,11 +3763,11 @@ pos_3:
|
||||
DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);
|
||||
}
|
||||
} else if (IsTileType(tile, MP_ROAD)) {
|
||||
if (!IsTileOwner(tile, _current_player)) return;
|
||||
|
||||
if (IsLevelCrossing(tile)) goto is_rail_crossing;
|
||||
|
||||
if (IsRoadDepot(tile)) {
|
||||
if (!IsTileOwner(tile, _current_player)) return;
|
||||
|
||||
DiagDirection dir;
|
||||
TileIndex t;
|
||||
|
||||
|
Reference in New Issue
Block a user