Changeset - r27000:12954530a0e6
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 21 months ago 2023-03-08 18:38:19
j.g.rennison@gmail.com
Fix #10556: Duplication of road infrastructure count updates (#10557)

When building a road stop
1 file changed with 0 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -2058,9 +2058,6 @@ CommandCost CmdBuildRoadStop(DoCommandFl
 
			UpdateCompanyRoadInfrastructure(tram_rt, tram_owner, ROAD_STOP_TRACKBIT_FACTOR);
 
			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);
 
			if (roadstopspec != nullptr) {
 
				st->SetRoadStopRandomBits(cur_tile, GB(Random(), 0, 8));
0 comments (0 inline, 0 general)