forked from mirror/OpenTTD
(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:
@@ -187,6 +187,12 @@ static inline void SetRoadOwner(TileIndex t, RoadType rt, Owner o)
|
||||
}
|
||||
}
|
||||
|
||||
static inline bool IsRoadOwner(TileIndex t, RoadType rt, Owner o)
|
||||
{
|
||||
assert(HasTileRoadType(t, rt));
|
||||
return (GetRoadOwner(t, rt) == o);
|
||||
}
|
||||
|
||||
/** Which directions are disallowed ? */
|
||||
enum DisallowedRoadDirections {
|
||||
DRD_NONE, ///< None of the directions are disallowed
|
||||
|
Reference in New Issue
Block a user