From 6d5333be050667aa1bd908480ac574947e8c0406 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Tue, 6 Nov 2012 13:08:25 +0100 Subject: [PATCH] some code cleanup --- apps/openmw/mwrender/renderingmanager.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/apps/openmw/mwrender/renderingmanager.cpp b/apps/openmw/mwrender/renderingmanager.cpp index 1b9f46781a..426cc47903 100644 --- a/apps/openmw/mwrender/renderingmanager.cpp +++ b/apps/openmw/mwrender/renderingmanager.cpp @@ -242,13 +242,7 @@ void RenderingManager::addObject (const MWWorld::Ptr& ptr){ void RenderingManager::removeObject (const MWWorld::Ptr& ptr) { if (!mObjects.deleteObject (ptr)) - { - /// \todo delete non-object MW-references - } - if (!mActors.deleteObject (ptr)) - { - /// \todo delete non-object MW-references - } + mActors.deleteObject (ptr); } void RenderingManager::moveObject (const MWWorld::Ptr& ptr, const Ogre::Vector3& position) @@ -292,9 +286,11 @@ bool RenderingManager::rotateObject( const MWWorld::Ptr &ptr, Ogre::Vector3 &rot } else if (adjust) { - /// \note Stored and passed in radians + // Stored and passed in radians float *f = ptr.getRefData().getPosition().rot; - rot.x += f[0], rot.y += f[1], rot.z += f[2]; + rot.x += f[0]; + rot.y += f[1]; + rot.z += f[2]; } return force; } @@ -365,7 +361,7 @@ void RenderingManager::update (float duration, bool paused) float *fpos = data.getPosition().pos; - /// \note only for LocalMap::updatePlayer() + // only for LocalMap::updatePlayer() Ogre::Vector3 pos(fpos[0], -fpos[2], -fpos[1]); Ogre::SceneNode *node = data.getBaseNode();