Fix CmdBuildRoadStop updating station acceptance in estimate mode

This commit is contained in:
Jonathan G Rennison
2021-12-30 14:08:26 +00:00
parent 457a1a172c
commit 42b223a288

View File

@@ -2159,10 +2159,10 @@ CommandCost CmdBuildRoadStop(TileIndex tile, DoCommandFlag flags, uint32 p1, uin
ZoningMarkDirtyStationCoverageArea(st);
NotifyRoadLayoutChanged(true);
UpdateRoadCachedOneWayStatesAroundTile(tile);
}
if (st != nullptr) {
st->AfterStationTileSetChange(true, type ? STATION_TRUCK: STATION_BUS);
if (st != nullptr) {
st->AfterStationTileSetChange(true, type ? STATION_TRUCK: STATION_BUS);
}
}
return cost;
}