diff options
author | rubidium <rubidium@openttd.org> | 2009-04-24 10:33:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-24 10:33:16 +0000 |
commit | 5db32d1dc599fad0f688d6e1f73cdae5ba660922 (patch) | |
tree | 0b556c14559ae92d15c6599e0516bca42e2cbe62 /src/network/core/address.h | |
parent | d21f406b038f9514c4180ff2ab16f2f9db91afb4 (diff) | |
download | openttd-5db32d1dc599fad0f688d6e1f73cdae5ba660922.tar.xz |
(svn r16134) -Change: do not add duplicates to the broadcast list
Diffstat (limited to 'src/network/core/address.h')
-rw-r--r-- | src/network/core/address.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/network/core/address.h b/src/network/core/address.h index 863c43427..ecf6efa60 100644 --- a/src/network/core/address.h +++ b/src/network/core/address.h @@ -207,6 +207,15 @@ public: { return const_cast<NetworkAddress*>(this)->CompareTo(address) == 0; } + /** + * Compare the address of this class with the address of another. + * @param address the other address. + * @return true if both do not match. + */ + bool operator != (NetworkAddress address) const + { + return const_cast<NetworkAddress*>(this)->CompareTo(address) != 0; + } /** * Compare the address of this class with the address of another. |