The previous fix 887e9481ff0e70df6bf93ce15a3899a03f124c50 only worked for roads and failed to consider a multiplier used for the infrastructure totals for tunnels/bridges. Also, depots and bus/truck stops are counted as 2 road pieces on creation but were only counted as 1 road piece on conversion because the function DiagDirToRoadBits() was used, which only ever returns single-piece road segments. Co-authored-by: A. S <admin-git@sotai.tk>
This commit is contained in:
@@ -222,6 +222,10 @@ static const int INVALID_PRICE_MODIFIER = MIN_PRICE_MODIFIER - 1;
|
||||
static const uint TUNNELBRIDGE_TRACKBIT_FACTOR = 4;
|
||||
/** Multiplier for how many regular track bits a level crossing counts. */
|
||||
static const uint LEVELCROSSING_TRACKBIT_FACTOR = 2;
|
||||
/** Multiplier for how many regular track bits a road depot counts. */
|
||||
static const uint ROAD_DEPOT_TRACKBIT_FACTOR = 2;
|
||||
/** Multiplier for how many regular track bits a bay stop counts. */
|
||||
static const uint ROAD_STOP_TRACKBIT_FACTOR = 2;
|
||||
/** Multiplier for how many regular tiles a lock counts. */
|
||||
static const uint LOCK_DEPOT_TILE_FACTOR = 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user