src/economy.cpp
changeset 6227 e38177bd77c4
parent 6199 707e6a239878
child 6247 7d81e3a5d803
equal deleted inserted replaced
6226:e2e9607ea3cc 6227:e38177bd77c4
  1366 	int all_vehicles_cargo_feeder_share = v->cargo_feeder_share; // used to hold transfer value of complete vehicle chain - used by trains
  1366 	int all_vehicles_cargo_feeder_share = v->cargo_feeder_share; // used to hold transfer value of complete vehicle chain - used by trains
  1367 
  1367 
  1368 	for (; v != NULL; v = v->next) {
  1368 	for (; v != NULL; v = v->next) {
  1369 		GoodsEntry* ge;
  1369 		GoodsEntry* ge;
  1370 		load_amount = EngInfo(v->engine_type)->load_amount;
  1370 		load_amount = EngInfo(v->engine_type)->load_amount;
  1371 		if (_patches.gradual_loading) {
  1371 		if (_patches.gradual_loading && HASBIT(EngInfo(v->engine_type)->callbackmask, CBM_LOAD_AMOUNT)) {
  1372 			uint16 cb_load_amount = GetVehicleCallback(CBID_VEHICLE_LOAD_AMOUNT, 0, 0, v->engine_type, v);
  1372 			uint16 cb_load_amount = GetVehicleCallback(CBID_VEHICLE_LOAD_AMOUNT, 0, 0, v->engine_type, v);
  1373 			if (cb_load_amount != CALLBACK_FAILED) load_amount = cb_load_amount & 0xFF;
  1373 			if (cb_load_amount != CALLBACK_FAILED) load_amount = cb_load_amount & 0xFF;
  1374 		}
  1374 		}
  1375 
  1375 
  1376 		if (v->cargo_cap == 0) continue;
  1376 		if (v->cargo_cap == 0) continue;