From 0f57809f5112a6e4acbc2cb95d92be2cf6108a0c Mon Sep 17 00:00:00 2001 From: krzys-h Date: Thu, 26 Dec 2013 22:13:04 +0100 Subject: Added scene test mode ... and fixed a "small" bug in previous commit ;) --- src/object/robotmain.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/object') diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index da2ccc4..0ed5d07 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -697,7 +697,7 @@ CRobotMain::CRobotMain(CApplication* app, bool loadProfile) m_endingLostRank = 0; m_winTerminate = false; - m_exitAfterMission = true; + m_exitAfterMission = false; m_joystickDeadzone = 0.2f; SetDefaultInputBindings(); @@ -5082,6 +5082,9 @@ void CRobotMain::CreateScene(bool soluce, bool fixScene, bool resetObject) m_dialog->SetStackRead(""); RestoreNumericLocale(); + + if(m_app->GetSceneTestMode()) + m_eventQueue->AddEvent(Event(EVENT_WIN)); } //! Creates an object of decoration mobile or stationary -- cgit v1.2.3-1-g7c22