Files @ r25968:3a653e5d3685
Branch filter:

Location: cpp/openttd-patchpack/source/regression/stationlist/result.txt

SamuXarick
Fix: reduce cost of building canals over objects on sea

It is not like we will drain the sea first, to put water back in it after.
Besides, the cost for draining the sea isn't calculated for all other cases either.

--StationList--
  Count():             5
  Location ListDump:
    6 => 42341
    2 => 41831
    7 => 41825
    5 => 33421
    4 => 33411
  CargoWaiting(0) ListDump:
    7 => 6
    6 => 6
    2 => 3
    5 => 0
    4 => 0
  CargoWaiting(1) ListDump:
    7 => 0
    6 => 0
    5 => 0
    4 => 0
    2 => 0

--StationList_Cargo--
  0
    0
      6 => 6
    1
      6 => 2
    2
      2 => 4
      7 => 2
    3
  1
    0
      7 => 18
      6 => 16
      2 => 7
    1
      6 => 8
      2 => 3
    2
      2 => 16
      6 => 14
      7 => 11
    3
      6 => 10
      2 => 8

--StationList_CargoPlanned--
    0
      7 => 18
      6 => 16
      2 => 7
    1
      6 => 8
      2 => 3
    2
      2 => 16
      6 => 14
      7 => 11
    3
      6 => 10
      2 => 8

--StationList_CargoPlannedByFrom--
      7 => 8
      6 => 8
      2 => 7

--StationList_CargoPlannedByVia--
      2 => 16
      6 => 7

--StationList_CargoPlannedViaByFrom--
      6 => 8
      2 => 3

--StationList_CargoPlannedFromByVia--
      6 => 10
      2 => 8

--StationList_CargoWaiting--
    0
      6 => 6
    1
      6 => 2
    2
      2 => 4
      7 => 2
    3

--StationList_CargoWaitingByFrom--
      2 => 3

--StationList_CargoWaitingByVia--
      6 => 3

--StationList_CargoWaitingViaByFrom--
      6 => 2

--StationList_CargoWaitingFromByVia--
      6 => 3

--StationList_Vehicle--
  Count():             2
  Location ListDump:
    5 => 33421
    4 => 33411
  CargoWaiting(0) ListDump:
    5 => 0
    4 => 0
  CargoWaiting(1) ListDump:
    5 => 0
    4 => 0
  CargoRating(1) ListDump:
    5 => -1
    4 => -1
  DistanceManhattanToTile(30000) ListDump:
    5 => 106
    4 => 96
  DistanceSquareToTile(30000) ListDump:
    5 => 8818
    4 => 7058
  IsWithinTownInfluence(0) ListDump:
    5 => 0
    4 => 0
ERROR: The script died unexpectedly.