mirror of https://github.com/OpenTTD/OpenTTD
Codechange: remove unused Pack from Order
parent
2d5565129a
commit
a49963ac39
|
@ -244,7 +244,6 @@ public:
|
||||||
void AssignOrder(const Order &other);
|
void AssignOrder(const Order &other);
|
||||||
bool Equals(const Order &other) const;
|
bool Equals(const Order &other) const;
|
||||||
|
|
||||||
uint32_t Pack() const;
|
|
||||||
uint16_t MapOldOrder() const;
|
uint16_t MapOldOrder() const;
|
||||||
void ConvertFromOldSavegame();
|
void ConvertFromOldSavegame();
|
||||||
};
|
};
|
||||||
|
|
|
@ -189,17 +189,6 @@ bool Order::Equals(const Order &other) const
|
||||||
return this->type == other.type && this->flags == other.flags && this->dest == other.dest;
|
return this->type == other.type && this->flags == other.flags && this->dest == other.dest;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Pack this order into a 32 bits integer, or actually only
|
|
||||||
* the type, flags and destination.
|
|
||||||
* @return the packed representation.
|
|
||||||
* @note unpacking is done in the constructor.
|
|
||||||
*/
|
|
||||||
uint32_t Order::Pack() const
|
|
||||||
{
|
|
||||||
return this->dest << 16 | this->flags << 8 | this->type;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pack this order into a 16 bits integer as close to the TTD
|
* Pack this order into a 16 bits integer as close to the TTD
|
||||||
* representation as possible.
|
* representation as possible.
|
||||||
|
|
Loading…
Reference in New Issue