1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-09 04:07:46 +00:00

changed back to old comparing

This commit is contained in:
AriAvery 2019-02-06 12:01:33 +01:00
parent 6a60b3a59a
commit 87927b3713
2 changed files with 8 additions and 13 deletions

View file

@ -1,8 +1,6 @@
#include <string.h>
#include "Vector3.h" #include "Vector3.h"
inline bool Sapphire::Common::FFXIVARR_POSITION3::operator == ( const FFXIVARR_POSITION3& target ) const inline bool Sapphire::Common::FFXIVARR_POSITION3::operator == ( const FFXIVARR_POSITION3& target ) const
{ {
return !memcmp( this, &target, sizeof( FFXIVARR_POSITION3 ) ); return x == target.x && y == target.y && z == target.z;
} }

View file

@ -1,10 +1,8 @@
#ifndef _VECTOR3_H_ #ifndef _VECTOR3_H_
#define _VECTOR3_H_ #define _VECTOR3_H_
namespace Sapphire namespace Sapphire::Common
{ {
namespace Common
{
struct FFXIVARR_POSITION3 struct FFXIVARR_POSITION3
{ {
float x; float x;
@ -12,7 +10,6 @@ namespace Sapphire
float z; float z;
inline bool operator == ( const FFXIVARR_POSITION3& target ) const; inline bool operator == ( const FFXIVARR_POSITION3& target ) const;
}; };
}
} }
#endif #endif