src/cargotype.h
branchgamebalance
changeset 9898 324dad59eb35
parent 9895 7bd07f43b0e3
child 9906 6f41b8713b65
equal deleted inserted replaced
9897:4a2d75b60786 9898:324dad59eb35
    57 /* Get the cargo ID with the cargo label */
    57 /* Get the cargo ID with the cargo label */
    58 CargoID GetCargoIDByLabel(CargoLabel cl);
    58 CargoID GetCargoIDByLabel(CargoLabel cl);
    59 
    59 
    60 static inline bool IsCargoInClass(CargoID c, uint16 cc)
    60 static inline bool IsCargoInClass(CargoID c, uint16 cc)
    61 {
    61 {
    62 	return GetCargo(c)->classes & cc;
    62 	return (GetCargo(c)->classes & cc) != 0;
    63 }
    63 }
    64 
    64 
    65 
    65 
    66 #endif /* CARGOTYPE_H */
    66 #endif /* CARGOTYPE_H */