bridge_gui.c
changeset 203 d16d6e91bff8
parent 202 6f88be5f4802
child 337 cbe0c766c947
equal deleted inserted replaced
202:6f88be5f4802 203:d16d6e91bff8
   143 		for (bridge_type = 0; bridge_type != MAX_BRIDGES; bridge_type++) {	// loop for all bridgetypes
   143 		for (bridge_type = 0; bridge_type != MAX_BRIDGES; bridge_type++) {	// loop for all bridgetypes
   144 
   144 
   145 			if (CheckBridge_Stuff(bridge_type, bridge_len)) {
   145 			if (CheckBridge_Stuff(bridge_type, bridge_len)) {
   146 				// bridge is accepted, add to list
   146 				// bridge is accepted, add to list
   147 				// add to terraforming & bulldozing costs the cost of the bridge itself (not computed with DC_QUERY_COST)
   147 				// add to terraforming & bulldozing costs the cost of the bridge itself (not computed with DC_QUERY_COST)
   148 				_bridge.costs[j] = ret + ((((int64)tot_bridge_len * (int64)_price.build_bridge) * (int64)_bridge_type_price_mod[bridge_type]) >> 8);
   148 				_bridge.costs[j] = ret + (((int64)tot_bridge_len * _price.build_bridge * _bridge_type_price_mod[bridge_type]) >> 8);
   149 				_bridge.indexes[j] = bridge_type;
   149 				_bridge.indexes[j] = bridge_type;
   150 				j++;
   150 				j++;
   151 			}
   151 			}
   152 		}
   152 		}
   153 	}
   153 	}