Core/Vmaps: Reduce memory used by vmaps, part 2
This commit is contained in:
1 parent
e86ae8987b
commit
a7089f5b26
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -685,7 +685,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