bridge_gui.c
changeset 202 6f88be5f4802
parent 200 03b8104d1479
child 203 d16d6e91bff8
equal deleted inserted replaced
201:c40d343115f8 202:6f88be5f4802
   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 * (int64)_price.build_bridge) * (int64)_bridge_type_price_mod[bridge_type]) >> 8);
   149 				if (_bridge.costs[j] < 0)
       
   150 					printf("BLAAT!\n");
       
   151 				_bridge.indexes[j] = bridge_type;
   149 				_bridge.indexes[j] = bridge_type;
   152 				j++;
   150 				j++;
   153 			}
   151 			}
   154 		}
   152 		}
   155 	}
   153 	}