diff --git a/apps/openmw/mwworld/world.cpp b/apps/openmw/mwworld/world.cpp index 1a424d7c8..2a89b1f42 100644 --- a/apps/openmw/mwworld/world.cpp +++ b/apps/openmw/mwworld/world.cpp @@ -647,7 +647,7 @@ namespace MWWorld } } - void World::moveObject (Ptr ptr, float x, float y, float z) + void World::moveObjectImp (Ptr ptr, float x, float y, float z) { ptr.getCellRef().pos.pos[0] = x; ptr.getCellRef().pos.pos[1] = y; @@ -674,6 +674,11 @@ namespace MWWorld } } } + } + + void World::moveObject (Ptr ptr, float x, float y, float z) + { + moveObjectImp(ptr, x, y, z); mPhysics->moveObject (ptr.getRefData().getHandle(), Ogre::Vector3 (x, y, z), !DoingPhysics::isDoingPhysics()); diff --git a/apps/openmw/mwworld/world.hpp b/apps/openmw/mwworld/world.hpp index 045d37aac..53dd2c86c 100644 --- a/apps/openmw/mwworld/world.hpp +++ b/apps/openmw/mwworld/world.hpp @@ -179,6 +179,8 @@ namespace MWWorld ///< Return handle of the object the player is looking at void deleteObject (Ptr ptr); + + void moveObjectImp (Ptr ptr, float x, float y, float z); void moveObject (Ptr ptr, float x, float y, float z);