mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Core/Vmaps: Reduce memory used by vmaps, part 2
This commit is contained in:
@@ -46,7 +46,6 @@ namespace VMAP
|
||||
uint8 adtId;
|
||||
uint32 ID;
|
||||
G3D::Vector3 iPos;
|
||||
G3D::Vector3 iRot;
|
||||
float iScale;
|
||||
G3D::AABox iBound;
|
||||
#ifdef VMAP_DEBUG
|
||||
@@ -59,6 +58,7 @@ namespace VMAP
|
||||
|
||||
struct TC_COMMON_API ModelSpawn : public ModelMinimalData
|
||||
{
|
||||
G3D::Vector3 iRot;
|
||||
#ifndef VMAP_DEBUG
|
||||
std::string name;
|
||||
#endif
|
||||
|
||||
@@ -679,7 +679,7 @@ namespace MMAP
|
||||
|
||||
// transform data
|
||||
float scale = instance.iScale;
|
||||
G3D::Matrix3 rotation = G3D::Matrix3::fromEulerAnglesXYZ(G3D::pi()*instance.iRot.z / -180.f, G3D::pi() * instance.iRot.x / -180.f, G3D::pi() * instance.iRot.y / -180.f);
|
||||
G3D::Matrix3 rotation = instance.GetInvRot();
|
||||
G3D::Vector3 position = instance.iPos;
|
||||
position.x -= 32 * GRID_SIZE;
|
||||
position.y -= 32 * GRID_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user