mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 03:56:39 +00:00 
			
		
		
		
	Move RenderingManager::update call to World::update
There is no need to do that in Scene::update and pass paused argument there.
This commit is contained in:
		
							parent
							
								
									8473336b06
								
							
						
					
					
						commit
						f03360b666
					
				
					 3 changed files with 5 additions and 5 deletions
				
			
		|  | @ -295,7 +295,7 @@ namespace MWWorld | ||||||
|         mPhysics->updateScale(ptr); |         mPhysics->updateScale(ptr); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void Scene::update (float duration, bool paused) |     void Scene::update(float duration) | ||||||
|     { |     { | ||||||
|         if (mChangeCellGridRequest.has_value()) |         if (mChangeCellGridRequest.has_value()) | ||||||
|         { |         { | ||||||
|  | @ -306,8 +306,6 @@ namespace MWWorld | ||||||
| 
 | 
 | ||||||
|         mPreloader->updateCache(mRendering.getReferenceTime()); |         mPreloader->updateCache(mRendering.getReferenceTime()); | ||||||
|         preloadCells(duration); |         preloadCells(duration); | ||||||
| 
 |  | ||||||
|         mRendering.update (duration, paused); |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     void Scene::unloadCell(CellStore* cell) |     void Scene::unloadCell(CellStore* cell) | ||||||
|  |  | ||||||
|  | @ -164,7 +164,7 @@ namespace MWWorld | ||||||
| 
 | 
 | ||||||
|             void markCellAsUnchanged(); |             void markCellAsUnchanged(); | ||||||
| 
 | 
 | ||||||
|             void update (float duration, bool paused); |             void update(float duration); | ||||||
| 
 | 
 | ||||||
|             void addObjectToScene (const Ptr& ptr); |             void addObjectToScene (const Ptr& ptr); | ||||||
|             ///< Add an object that already exists in the world model to the scene.
 |             ///< Add an object that already exists in the world model to the scene.
 | ||||||
|  |  | ||||||
|  | @ -1849,7 +1849,9 @@ namespace MWWorld | ||||||
| 
 | 
 | ||||||
|         mPhysics->debugDraw(); |         mPhysics->debugDraw(); | ||||||
| 
 | 
 | ||||||
|         mWorldScene->update (duration, paused); |         mWorldScene->update(duration); | ||||||
|  | 
 | ||||||
|  |         mRendering->update(duration, paused); | ||||||
| 
 | 
 | ||||||
|         updateSoundListener(); |         updateSoundListener(); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue