Skip to content

Commit c996ee7

Browse files
committed
Update Scene sensibly as part of sim instead in inside draw
1 parent b5cd499 commit c996ee7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@ namespace RTE {
332332
g_LuaMan.Update();
333333
g_ActivityMan.Update();
334334

335+
if (g_SceneMan.GetScene()) {
336+
g_SceneMan.GetScene()->Update();
337+
}
338+
335339
g_LuaMan.ClearScriptTimings();
336340
g_MovableMan.Update();
337341
g_PerformanceMan.UpdateSortedScriptTimings(g_LuaMan.GetScriptTimings());

Managers/SceneMan.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2773,11 +2773,6 @@ void SceneMan::Update(int screenId) {
27732773

27742774
m_LastUpdatedScreen = screenId;
27752775

2776-
// Update the scene, only if doing the first screen, since it only needs done once per update.
2777-
if (screenId == 0) {
2778-
m_pCurrentScene->Update();
2779-
}
2780-
27812776
const Vector &offset = g_CameraMan.GetOffset(screenId);
27822777
m_pMOColorLayer->SetOffset(offset);
27832778
m_pMOIDLayer->SetOffset(offset);

0 commit comments

Comments
 (0)