mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r5314) -Regression: When road works started on a road tile with barren roadside the road side turned into trees (caused by r4258)
This commit is contained in:
parent
072312b538
commit
c61b617a16
@ -143,7 +143,11 @@ static inline void StartRoadWorks(TileIndex t)
|
||||
{
|
||||
assert(!HasRoadWorks(t));
|
||||
/* Remove any trees or lamps in case or roadwork */
|
||||
SetGroundType(t, (RoadGroundType)(min(GetGroundType(t), RGT_PAVED) + RGT_ROADWORK_OFFSET));
|
||||
switch (GetGroundType(t)) {
|
||||
case RGT_BARREN:
|
||||
case RGT_GRASS: SetGroundType(t, RGT_ROADWORK_GRASS); break;
|
||||
default: SetGroundType(t, RGT_ROADWORK_PAVED); break;
|
||||
}
|
||||
}
|
||||
|
||||
static inline void TerminateRoadWorks(TileIndex t)
|
||||
|
Loading…
Reference in New Issue
Block a user