mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 20:26:43 +00:00 
			
		
		
		
	get rid of the warnings
This commit is contained in:
		
							parent
							
								
									a13b958600
								
							
						
					
					
						commit
						29b8a5374b
					
				
					 3 changed files with 8 additions and 8 deletions
				
			
		|  | @ -523,4 +523,5 @@ void OMW::Engine::setCompileAll (bool all) | |||
| void OMW::Engine::setEncoding(const std::string& encoding) | ||||
| { | ||||
|     mEncoding = encoding; | ||||
| } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -35,7 +35,7 @@ int ExteriorCellRender::uniqueID = 0; | |||
| 
 | ||||
| ExteriorCellRender::ExteriorCellRender(ESMS::CellStore<MWWorld::RefData> &_cell, MWWorld::Environment& environment, | ||||
|     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; | ||||
|     sg = mScene.getMgr()->createStaticGeometry( "sg" + Ogre::StringConverter::toString(uniqueID)); | ||||
|  | @ -350,13 +350,14 @@ void ExteriorCellRender::setAmbientMode() | |||
| 
 | ||||
| void ExteriorCellRender::show() | ||||
| { | ||||
|     // FIXME: this one may be the bug
 | ||||
|   mBase = mScene.getRoot()->createChildSceneNode(); | ||||
| 
 | ||||
|    | ||||
|   configureAmbient(); | ||||
|   configureFog(); | ||||
| 
 | ||||
|    | ||||
|   insertCell(mCell, mEnvironment); | ||||
| 
 | ||||
|    | ||||
|   sg->build(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -25,8 +25,7 @@ void insertCellRefList (T& cellRefList, ESMS::CellStore<MWWorld::RefData> &cell) | |||
| { | ||||
|     if (!cellRefList.list.empty()) | ||||
|     { | ||||
|         const MWWorld::Class& class_ = | ||||
|             MWWorld::Class::get (MWWorld::Ptr (&*cellRefList.list.begin(), &cell)); | ||||
|         //const MWWorld::Class& class_ = MWWorld::Class::get (MWWorld::Ptr (&*cellRefList.list.begin(), &cell));
 | ||||
| 
 | ||||
|         for (typename T::List::iterator it = cellRefList.list.begin(); | ||||
|             it != cellRefList.list.end(); it++) | ||||
|  | @ -100,7 +99,6 @@ namespace MWWorld | |||
|     void Scene::changeCell (int X, int Y, const ESM::Position& position, bool adjustPlayerPos) | ||||
|     { | ||||
|         SuppressDoingPhysics scopeGuard; | ||||
| 
 | ||||
|         // remove active
 | ||||
|         mEnvironment.mMechanicsManager->removeActor (mWorld->getPlayer().getPlayer()); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue