src/vehicle_gui.cpp
branchnoai
changeset 9704 197cb8c6ae17
parent 9703 d2a6acdbd665
child 9718 f82a4facea8b
equal deleted inserted replaced
9703:d2a6acdbd665 9704:197cb8c6ae17
   206 		for (CargoID cid = 0; cid < NUM_CARGO && num_lines < max_lines; cid++) {
   206 		for (CargoID cid = 0; cid < NUM_CARGO && num_lines < max_lines; cid++) {
   207 			/* Skip cargo type if it's not listed */
   207 			/* Skip cargo type if it's not listed */
   208 			if (!HASBIT(cmask, cid)) continue;
   208 			if (!HASBIT(cmask, cid)) continue;
   209 
   209 
   210 			/* Check the vehicle's callback mask for cargo suffixes */
   210 			/* Check the vehicle's callback mask for cargo suffixes */
   211 			if (HASBIT(callbackmask, CBM_CARGO_SUFFIX)) {
   211 			if (HASBIT(callbackmask, CBM_VEHICLE_CARGO_SUFFIX)) {
   212 				/* Make a note of the original cargo type. It has to be
   212 				/* Make a note of the original cargo type. It has to be
   213 				 * changed to test the cargo & subtype... */
   213 				 * changed to test the cargo & subtype... */
   214 				CargoID temp_cargo = u->cargo_type;
   214 				CargoID temp_cargo = u->cargo_type;
   215 				byte temp_subtype  = u->cargo_subtype;
   215 				byte temp_subtype  = u->cargo_subtype;
   216 				byte refit_cyc;
   216 				byte refit_cyc;