summaryrefslogtreecommitdiffstats
path: root/src/object/robotmain.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-12-30 10:51:29 +0100
committerkrzys-h <krzys_h@interia.pl>2013-12-30 10:51:29 +0100
commit3536f1c7cc52792a7d833b4f823aa515dc00d933 (patch)
treecfeeaceeba0caf631f07cccef1fdd0ed467f1dcb /src/object/robotmain.cpp
parent12e17224b37d7db52545c00fb75c0322e0e5afad (diff)
downloadcolobot-3536f1c7cc52792a7d833b4f823aa515dc00d933.tar.gz
colobot-3536f1c7cc52792a7d833b4f823aa515dc00d933.tar.bz2
colobot-3536f1c7cc52792a7d833b4f823aa515dc00d933.zip
Added CObjectManager::Flush()
Possible fix for #275
Diffstat (limited to 'src/object/robotmain.cpp')
-rw-r--r--src/object/robotmain.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp
index 0852df0..308b172 100644
--- a/src/object/robotmain.cpp
+++ b/src/object/robotmain.cpp
@@ -1148,6 +1148,8 @@ void CRobotMain::ChangePhase(Phase phase)
iMan->Flush(CLASS_PHYSICS);
iMan->Flush(CLASS_BRAIN);
iMan->Flush(CLASS_PYRO);
+
+ CObjectManager::GetInstancePointer()->Flush();
Math::Point dim, pos;
@@ -3869,6 +3871,8 @@ void CRobotMain::ScenePerso()
iMan->Flush(CLASS_PHYSICS);
iMan->Flush(CLASS_BRAIN);
iMan->Flush(CLASS_PYRO);
+
+ CObjectManager::GetInstancePointer()->Flush();
m_dialog->SetSceneName("perso");
m_dialog->SetSceneRank(0);
@@ -6546,6 +6550,8 @@ void CRobotMain::ResetCreate()
iMan->Flush(CLASS_PHYSICS);
iMan->Flush(CLASS_BRAIN);
iMan->Flush(CLASS_PYRO);
+
+ CObjectManager::GetInstancePointer()->Flush();
m_camera->SetType(Gfx::CAM_TYPE_DIALOG);