changeset 3064:9faaf26ffd1c draft

(svn r3653) -Fix: You didn't pay for terraforming at the end tile when building a tunnel
author tron <tron@openttd.org>
date Wed, 22 Feb 2006 21:11:31 +0000
parents 834034684d6c
children a09d26e1abdf
files tunnelbridge_cmd.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -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);