aboutsummaryrefslogtreecommitdiff
path: root/src/server/collision/Models/GameObjectModel.cpp
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2013-08-17 23:46:36 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2013-08-17 23:47:43 +0200
commitda1e466bd5bf2e4f0778a9bfb6b60ae66e1a6ada (patch)
treeb9496b119d095c38d9c5137a4926ac132bb0f1e4 /src/server/collision/Models/GameObjectModel.cpp
parent865353e4a61d7dc7c57f4fa699bf652e83286f4c (diff)
Core/Misc: Implemented GetObjectScale function
Diffstat (limited to 'src/server/collision/Models/GameObjectModel.cpp')
-rw-r--r--src/server/collision/Models/GameObjectModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/collision/Models/GameObjectModel.cpp b/src/server/collision/Models/GameObjectModel.cpp
index 9db3d706fca..a3af175a977 100644
--- a/src/server/collision/Models/GameObjectModel.cpp
+++ b/src/server/collision/Models/GameObjectModel.cpp
@@ -119,7 +119,7 @@ bool GameObjectModel::initialize(const GameObject& go, const GameObjectDisplayIn
//ID = 0;
iPos = Vector3(go.GetPositionX(), go.GetPositionY(), go.GetPositionZ());
phasemask = go.GetPhaseMask();
- iScale = go.GetFloatValue(OBJECT_FIELD_SCALE_X);
+ iScale = go.GetObjectScale();
iInvScale = 1.f / iScale;
G3D::Matrix3 iRotation = G3D::Matrix3::fromEulerAnglesZYX(go.GetOrientation(), 0, 0);