File diff r18556:3a067cfd3824 → r18557:96a9c31d64d1
src/rail_cmd.cpp
Show inline comments
 
@@ -454,7 +454,15 @@ CommandCost CmdBuildSingleRail(TileIndex
 
					default: break;
 
					case ROADTYPES_TRAM:
 
						/* Tram crossings must always have road. */
 
						if (flags & DC_EXEC) SetRoadOwner(tile, ROADTYPE_ROAD, _current_company);
 
						if (flags & DC_EXEC) {
 
							SetRoadOwner(tile, ROADTYPE_ROAD, _current_company);
 
							Company *c = Company::GetIfValid(_current_company);
 
							if (c != NULL) {
 
								/* A full diagonal tile has two road bits. */
 
								c->infrastructure.road[ROADTYPE_ROAD] += 2;
 
								DirtyCompanyInfrastructureWindows(c->index);
 
							}
 
						}
 
						roadtypes |= ROADTYPES_ROAD;
 
						break;