equal
deleted
inserted
replaced
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; |