Fix cost of building tunnels.
This commit is contained in:

committed by
Jonathan G Rennison

parent
eddd635f00
commit
60345d2e18
@@ -807,8 +807,8 @@ CommandCost CmdBuildTunnel(TileIndex start_tile, DoCommandFlag flags, uint32 p1,
|
|||||||
}
|
}
|
||||||
/* The cost of the digging. */
|
/* The cost of the digging. */
|
||||||
CommandCost cost(EXPENSES_CONSTRUCTION);
|
CommandCost cost(EXPENSES_CONSTRUCTION);
|
||||||
for (int i = tiles; i > 0; i--) {
|
for (int i = 1; i <= tiles; i++) {
|
||||||
if (tiles == tiles_bump) {
|
if (i == tiles_bump) {
|
||||||
tiles_coef++;
|
tiles_coef++;
|
||||||
tiles_bump *= 2;
|
tiles_bump *= 2;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user