| Old revision #p9jdi4m0u | New revision #pbx3m0hab | ||
|---|---|---|---|
| 11 | 11 | ||
| 12 | switch (GetStationType(tile)) { | 12 | switch (GetStationType(tile)) { |
| 13 | case STATION_RAIL: | 13 | case STATION_RAIL: |
| 14 | @@ -161,6 +161, | 14 | @@ -161,6 +161,10 @@ |
| 15 | } | 15 | } |
| 16 | 16 | ||
| 17 | case STATION_DOCK: | 17 | case STATION_DOCK: |
| 18 | + if (c != NULL && IsTileType(TileOffsByDiagDir(GetDockDirection(tile)), MP_STATION)) c->infrastructure.station += 2; | 18 | + if (IsDockTile(tile) && !HasTileWaterGround(tile)) { |
| 19 | + if (c != NULL) c->infrastructure.station += 2; | ||
| 20 | + } | ||
| 19 | + | 21 | + |
| 20 | case STATION_BUOY: | 22 | case STATION_BUOY: |
| 21 | if (GetWaterClass(tile) == WATER_CLASS_CANAL) { | 23 | if (GetWaterClass(tile) == WATER_CLASS_CANAL) { |