src/vehicle.cpp
changeset 8855 6d841d5d4789
parent 8853 3266f0374302
child 8862 f72f256c0259
equal deleted inserted replaced
8854:d3f0e0960fb9 8855:6d841d5d4789
  2173 	for (; v != NULL; v = v->Next()) {
  2173 	for (; v != NULL; v = v->Next()) {
  2174 		count += v->cargo.Count();
  2174 		count += v->cargo.Count();
  2175 		max += v->cargo_cap;
  2175 		max += v->cargo_cap;
  2176 		if (v->cargo_cap != 0) {
  2176 		if (v->cargo_cap != 0) {
  2177 			unloading += HasBit(v->vehicle_flags, VF_CARGO_UNLOADING) ? 1 : 0;
  2177 			unloading += HasBit(v->vehicle_flags, VF_CARGO_UNLOADING) ? 1 : 0;
  2178 			loading |= !HasBit(u->current_order.GetUnloadType(), OF_UNLOAD) && st->goods[v->cargo_type].days_since_pickup != 255;
  2178 			loading |= !(u->current_order.GetUnloadType() & OUFB_UNLOAD) && st->goods[v->cargo_type].days_since_pickup != 255;
  2179 			cars++;
  2179 			cars++;
  2180 		}
  2180 		}
  2181 	}
  2181 	}
  2182 
  2182 
  2183 	if (unloading == 0 && loading)          *color = STR_PERCENT_UP;
  2183 	if (unloading == 0 && loading)          *color = STR_PERCENT_UP;