|
@@ -17,13 +17,13 @@
|
|
|
#include "safeguards.h"
|
|
|
|
|
|
/**
|
|
|
* Pack a VehicleListIdentifier in a single uint32.
|
|
|
* @return The packed identifier.
|
|
|
*/
|
|
|
uint32 VehicleListIdentifier::Pack()
|
|
|
uint32 VehicleListIdentifier::Pack() const
|
|
|
{
|
|
|
byte c = this->company == OWNER_NONE ? 0xF : (byte)this->company;
|
|
|
assert(c < (1 << 4));
|
|
|
assert(this->vtype < (1 << 2));
|
|
|
assert(this->index < (1 << 20));
|
|
|
assert(this->type < VLT_END);
|