mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 04:16:46 +00:00
Trap converted to use xyz_location as m_Position instead of x, y, z
This commit is contained in:
@@ -67,6 +67,16 @@ const xyz_heading xyz_heading::operator -(const xyz_location& rhs) const{
|
||||
return xyz_heading(m_X - rhs.m_X, m_Y - rhs.m_Y, m_Z - rhs.m_Z, m_Heading);
|
||||
}
|
||||
|
||||
void xyz_heading::ABS_XYZ(void) {
|
||||
if (m_X < 0)
|
||||
m_X = -m_X;
|
||||
|
||||
if (m_Y < 0)
|
||||
m_Y = -m_Y;
|
||||
|
||||
if (m_Z < 0)
|
||||
m_Z = -m_Z;
|
||||
}
|
||||
|
||||
xyz_location::xyz_location(float x, float y, float z) :
|
||||
m_X(x),
|
||||
|
||||
Reference in New Issue
Block a user