mirror of https://github.com/OpenTTD/OpenTTD
When building a road stoppull/10529/head
parent
3287acd114
commit
c74dfe393f
|
@ -2058,9 +2058,6 @@ CommandCost CmdBuildRoadStop(DoCommandFlag flags, TileIndex tile, uint8 width, u
|
||||||
UpdateCompanyRoadInfrastructure(tram_rt, tram_owner, ROAD_STOP_TRACKBIT_FACTOR);
|
UpdateCompanyRoadInfrastructure(tram_rt, tram_owner, ROAD_STOP_TRACKBIT_FACTOR);
|
||||||
Company::Get(st->owner)->infrastructure.station++;
|
Company::Get(st->owner)->infrastructure.station++;
|
||||||
|
|
||||||
UpdateCompanyRoadInfrastructure(road_rt, road_owner, ROAD_STOP_TRACKBIT_FACTOR);
|
|
||||||
UpdateCompanyRoadInfrastructure(tram_rt, tram_owner, ROAD_STOP_TRACKBIT_FACTOR);
|
|
||||||
|
|
||||||
SetCustomRoadStopSpecIndex(cur_tile, specindex);
|
SetCustomRoadStopSpecIndex(cur_tile, specindex);
|
||||||
if (roadstopspec != nullptr) {
|
if (roadstopspec != nullptr) {
|
||||||
st->SetRoadStopRandomBits(cur_tile, GB(Random(), 0, 8));
|
st->SetRoadStopRandomBits(cur_tile, GB(Random(), 0, 8));
|
||||||
|
|
Loading…
Reference in New Issue