mirror of https://github.com/OpenTTD/OpenTTD
(svn r20483) -Doc: RefitOption operators.
parent
89b2b9370a
commit
144a7cab1a
|
@ -284,11 +284,21 @@ struct RefitOption {
|
||||||
uint16 value; ///< GRF-local String to display for the cargo
|
uint16 value; ///< GRF-local String to display for the cargo
|
||||||
EngineID engine; ///< Engine for which to resolve #value
|
EngineID engine; ///< Engine for which to resolve #value
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Inequality operator for #RefitOption.
|
||||||
|
* @param other Compare to this #RefitOption.
|
||||||
|
* @return True if both #RefitOption are different.
|
||||||
|
*/
|
||||||
FORCEINLINE bool operator != (const RefitOption &other) const
|
FORCEINLINE bool operator != (const RefitOption &other) const
|
||||||
{
|
{
|
||||||
return other.cargo != this->cargo || other.value != this->value;
|
return other.cargo != this->cargo || other.value != this->value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Equality operator for #RefitOption.
|
||||||
|
* @param other Compare to this #RefitOption.
|
||||||
|
* @return True if both #RefitOption are equal.
|
||||||
|
*/
|
||||||
FORCEINLINE bool operator == (const RefitOption &other) const
|
FORCEINLINE bool operator == (const RefitOption &other) const
|
||||||
{
|
{
|
||||||
return other.cargo == this->cargo && other.value == this->value;
|
return other.cargo == this->cargo && other.value == this->value;
|
||||||
|
|
Loading…
Reference in New Issue