mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-12 01:24:54 +00:00
(svn r26679) -Codechange: VehicleListIdentifier::Pack can be const. (Juanjo)
This commit is contained in:
parent
c3c966fd79
commit
da9de1de70
@ -20,7 +20,7 @@
|
||||
* 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));
|
||||
|
@ -34,7 +34,7 @@ struct VehicleListIdentifier {
|
||||
CompanyID company; ///< The company associated with this list.
|
||||
uint32 index; ///< A vehicle list type specific index.
|
||||
|
||||
uint32 Pack();
|
||||
uint32 Pack() const;
|
||||
bool Unpack(uint32 data);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user