(svn r9301) -Codechange: Use cargo class to determine if a road vehicle can stop in bus or truck stops.

This commit is contained in:
peter1138
2007-03-18 22:07:44 +00:00
parent f4cad9017e
commit e485b8f694
5 changed files with 24 additions and 16 deletions

View File

@@ -57,5 +57,10 @@ const CargoSpec *GetCargo(CargoID c);
/* Get the cargo ID with the cargo label */
CargoID GetCargoIDByLabel(CargoLabel cl);
static inline bool IsCargoInClass(CargoID c, uint16 cc)
{
return GetCargo(c)->classes & cc;
}
#endif /* CARGOTYPE_H */