Core/Misc: fixed more warnings
This commit is contained in:
1 parent
2fc86f70e2
commit
208378713b
3 files changed
+4
-4
No files matched your search
@@ -23,7 +23,7 @@
|
||||
#include <G3D/g3dmath.h>
|
||||
#include <sstream>
|
||||
|
||||
bool Position::operator==(Position const& a)
|
||||
bool Position::operator==(Position const& a) const
|
||||
{
|
||||
return (G3D::fuzzyEq(a.m_positionX, m_positionX) &&
|
||||
G3D::fuzzyEq(a.m_positionY, m_positionY) &&
|
||||
|
||||
@@ -58,9 +58,9 @@ private:
|
||||
float m_orientation;
|
||||
|
||||
public:
|
||||
bool operator==(Position const& a);
|
||||
bool operator==(Position const& a) const;
|
||||
|
||||
inline bool operator!=(Position const& a)
|
||||
inline bool operator!=(Position const& a) const
|
||||
{
|
||||
return !(operator==(a));
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
void WorldPacket::Compress(z_stream* compressionStream)
|
||||
{
|
||||
OpcodeServer uncompressedOpcode = OpcodeServer(GetOpcode());
|
||||
if (uncompressedOpcode & COMPRESSED_OPCODE_MASK)
|
||||
if (uncompressedOpcode & AsUnderlyingType(COMPRESSED_OPCODE_MASK))
|
||||
{
|
||||
TC_LOG_ERROR("network", "Packet with opcode 0x%04X is already compressed!", uncompressedOpcode);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user