get rid of the warnings

This commit is contained in:
Sebastian Wick 2011-08-19 17:03:47 +02:00
parent a13b958600
commit 29b8a5374b
3 changed files with 8 additions and 8 deletions

View file

@ -524,3 +524,4 @@ void OMW::Engine::setEncoding(const std::string& encoding)
{ {
mEncoding = encoding; mEncoding = encoding;
} }

View file

@ -35,7 +35,7 @@ int ExteriorCellRender::uniqueID = 0;
ExteriorCellRender::ExteriorCellRender(ESMS::CellStore<MWWorld::RefData> &_cell, MWWorld::Environment& environment, ExteriorCellRender::ExteriorCellRender(ESMS::CellStore<MWWorld::RefData> &_cell, MWWorld::Environment& environment,
MWScene &_scene, MWWorld::PhysicsSystem *physics) MWScene &_scene, MWWorld::PhysicsSystem *physics)
: mCell(_cell), mEnvironment (environment), mScene(_scene), mBase(NULL), mInsert(NULL), mAmbientMode (0), mPhysics(physics) : mCell(_cell), mEnvironment (environment), mScene(_scene), mPhysics(physics), mBase(NULL), mInsert(NULL), mAmbientMode (0)
{ {
uniqueID = uniqueID +1; uniqueID = uniqueID +1;
sg = mScene.getMgr()->createStaticGeometry( "sg" + Ogre::StringConverter::toString(uniqueID)); sg = mScene.getMgr()->createStaticGeometry( "sg" + Ogre::StringConverter::toString(uniqueID));
@ -350,6 +350,7 @@ void ExteriorCellRender::setAmbientMode()
void ExteriorCellRender::show() void ExteriorCellRender::show()
{ {
// FIXME: this one may be the bug
mBase = mScene.getRoot()->createChildSceneNode(); mBase = mScene.getRoot()->createChildSceneNode();
configureAmbient(); configureAmbient();

View file

@ -25,8 +25,7 @@ void insertCellRefList (T& cellRefList, ESMS::CellStore<MWWorld::RefData> &cell)
{ {
if (!cellRefList.list.empty()) if (!cellRefList.list.empty())
{ {
const MWWorld::Class& class_ = //const MWWorld::Class& class_ = MWWorld::Class::get (MWWorld::Ptr (&*cellRefList.list.begin(), &cell));
MWWorld::Class::get (MWWorld::Ptr (&*cellRefList.list.begin(), &cell));
for (typename T::List::iterator it = cellRefList.list.begin(); for (typename T::List::iterator it = cellRefList.list.begin();
it != cellRefList.list.end(); it++) it != cellRefList.list.end(); it++)
@ -100,7 +99,6 @@ namespace MWWorld
void Scene::changeCell (int X, int Y, const ESM::Position& position, bool adjustPlayerPos) void Scene::changeCell (int X, int Y, const ESM::Position& position, bool adjustPlayerPos)
{ {
SuppressDoingPhysics scopeGuard; SuppressDoingPhysics scopeGuard;
// remove active // remove active
mEnvironment.mMechanicsManager->removeActor (mWorld->getPlayer().getPlayer()); mEnvironment.mMechanicsManager->removeActor (mWorld->getPlayer().getPlayer());