From 773a7c9cb64856bd2bca11f9c38eea049b353e4e Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 18 Jun 2007 19:53:50 +0000 Subject: (svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified. --- src/bridge_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bridge_gui.cpp') diff --git a/src/bridge_gui.cpp b/src/bridge_gui.cpp index b78f4ddd8..da0cd4a88 100644 --- a/src/bridge_gui.cpp +++ b/src/bridge_gui.cpp @@ -145,7 +145,7 @@ void ShowBuildBridgeWindow(TileIndex start, TileIndex end, byte bridge_type) const Bridge *b = &_bridge[bridge_type]; // bridge is accepted, add to list // add to terraforming & bulldozing costs the cost of the bridge itself (not computed with DC_QUERY_COST) - _bridgedata.costs[j] = ret + (((int64)tot_bridgedata_len * _price.build_bridge * b->price) >> 8); + _bridgedata.costs[j] = ret.GetCost() + (((int64)tot_bridgedata_len * _price.build_bridge * b->price) >> 8); _bridgedata.indexes[j] = bridge_type; j++; } -- cgit v1.2.3-70-g09d2