(svn r3653) -Fix: You didn't pay for terraforming at the end tile when building a tunnel
authortron
Wed, 22 Feb 2006 21:11:31 +0000
changeset 3064 960264bcce6f
parent 3063 61a07ec0d09e
child 3065 c73ad9f6fb33
(svn r3653) -Fix: You didn't pay for terraforming at the end tile when building a tunnel
tunnelbridge_cmd.c
--- a/tunnelbridge_cmd.c	Wed Feb 22 21:09:55 2006 +0000
+++ b/tunnelbridge_cmd.c	Wed Feb 22 21:11:31 2006 +0000
@@ -519,9 +519,8 @@
 	} else {
 		ret = DoCommandByTile(end_tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
 		if (CmdFailed(ret)) return ret;
-		cost += ret;
 	}
-	cost += _price.build_tunnel;
+	cost += _price.build_tunnel + ret;
 
 	if (flags & DC_EXEC) {
 		SetTileType(start_tile, MP_TUNNELBRIDGE);