(svn r204) -Fix: deleted unneeded casts (tnx Tron)
authortruelight
Sat, 11 Sep 2004 13:37:44 +0000
changeset 203 d16d6e91bff8
parent 202 6f88be5f4802
child 204 1646d7049950
(svn r204) -Fix: deleted unneeded casts (tnx Tron)
bridge_gui.c
tunnelbridge_cmd.c
--- a/bridge_gui.c	Sat Sep 11 13:23:05 2004 +0000
+++ b/bridge_gui.c	Sat Sep 11 13:37:44 2004 +0000
@@ -145,7 +145,7 @@
 			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++;
 			}
--- a/tunnelbridge_cmd.c	Sat Sep 11 13:23:05 2004 +0000
+++ b/tunnelbridge_cmd.c	Sat Sep 11 13:37:44 2004 +0000
@@ -383,7 +383,7 @@
 		if (_current_player < MAX_PLAYERS && !(_is_ai_player && !_patches.ainew_active))
 			bridge_len = CalcBridgeLenCostFactor(bridge_len);
 
-		cost += (((int64)bridge_len * (int64)_price.build_bridge) * (int64)_bridge_type_price_mod[bridge_type]) >> 8;
+		cost += ((int64)bridge_len * _price.build_bridge * _bridge_type_price_mod[bridge_type]) >> 8;
 	}
 
 	return cost;