summaryrefslogtreecommitdiff
path: root/bridge_gui.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-09-11 13:37:44 +0000
committertruelight <truelight@openttd.org>2004-09-11 13:37:44 +0000
commitda87ab9c7984ec4fa77bcb11215c4061bff94220 (patch)
treedf8d2c2befef2a667c65b0e124bda9b6665b8e24 /bridge_gui.c
parent0b5cc6f149a8a1149a40a89c1740d8ee32521517 (diff)
downloadopenttd-da87ab9c7984ec4fa77bcb11215c4061bff94220.tar.xz
(svn r204) -Fix: deleted unneeded casts (tnx Tron)
Diffstat (limited to 'bridge_gui.c')
-rw-r--r--bridge_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge_gui.c b/bridge_gui.c
index 6a1120c79..a417166bf 100644
--- a/bridge_gui.c
+++ b/bridge_gui.c
@@ -145,7 +145,7 @@ void ShowBuildBridgeWindow(uint start, uint end, byte bridge_type)
if (CheckBridge_Stuff(bridge_type, bridge_len)) {
// bridge is accepted, add to list
// add to terraforming & bulldozing costs the cost of the bridge itself (not computed with DC_QUERY_COST)
- _bridge.costs[j] = ret + ((((int64)tot_bridge_len * (int64)_price.build_bridge) * (int64)_bridge_type_price_mod[bridge_type]) >> 8);
+ _bridge.costs[j] = ret + (((int64)tot_bridge_len * _price.build_bridge * _bridge_type_price_mod[bridge_type]) >> 8);
_bridge.indexes[j] = bridge_type;
j++;
}