(svn r16661) -Codechange: move definition of few very short functions to header files

This commit is contained in:
smatz
2009-06-25 23:49:59 +00:00
parent c0ac230e3e
commit f2e55319dd
4 changed files with 29 additions and 35 deletions

View File

@@ -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++) {