Fix cost of building tunnels.

pull/19/head
HackaLittleBit 7 years ago 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. */
CommandCost cost(EXPENSES_CONSTRUCTION);
for (int i = tiles; i > 0; i--) {
if (tiles == tiles_bump) {
for (int i = 1; i <= tiles; i++) {
if (i == tiles_bump) {
tiles_coef++;
tiles_bump *= 2;
}

Loading…
Cancel
Save