forked from mirror/OpenTTD
(svn r16661) -Codechange: move definition of few very short functions to header files
This commit is contained in:
@@ -13,8 +13,6 @@
|
||||
|
||||
CargoSpec _cargo[NUM_CARGO];
|
||||
|
||||
static const byte INVALID_CARGO = 0xFF;
|
||||
|
||||
/* Bitmask of cargo types available */
|
||||
uint32 _cargo_mask;
|
||||
|
||||
@@ -55,19 +53,6 @@ void SetupCargoForClimate(LandscapeID l)
|
||||
}
|
||||
|
||||
|
||||
const CargoSpec *GetCargo(CargoID c)
|
||||
{
|
||||
assert(c < lengthof(_cargo));
|
||||
return &_cargo[c];
|
||||
}
|
||||
|
||||
|
||||
bool CargoSpec::IsValid() const
|
||||
{
|
||||
return bitnum != INVALID_CARGO;
|
||||
}
|
||||
|
||||
|
||||
CargoID GetCargoIDByLabel(CargoLabel cl)
|
||||
{
|
||||
for (CargoID c = 0; c < lengthof(_cargo); c++) {
|
||||
|
Reference in New Issue
Block a user