1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-08 19:57: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"
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,18 +1,15 @@
#ifndef _VECTOR3_H_
#define _VECTOR3_H_
namespace Sapphire
namespace Sapphire::Common
{
namespace Common
struct FFXIVARR_POSITION3
{
struct FFXIVARR_POSITION3
{
float x;
float y;
float z;
inline bool operator == ( const FFXIVARR_POSITION3& target ) const;
};
}
float x;
float y;
float z;
inline bool operator == ( const FFXIVARR_POSITION3& target ) const;
};
}
#endif