dmuratshin 9 years ago
parent
commit
adbb9f1fab
2 changed files with 7 additions and 0 deletions
  1. 6 0
      src/flow/Scene.cpp
  2. 1 0
      src/flow/Scene.h

+ 6 - 0
src/flow/Scene.cpp

@@ -249,6 +249,12 @@ namespace oxygine
             //Flow::instance.checkDone();
         }
 
+        void Scene::finishNoResult()
+        {
+            _done = true;
+            _resultCB = EventCallback();
+        }
+
         void Scene::remove()
         {
             LOGD("%-20s '%s'", "remove", getName().c_str());

+ 1 - 0
src/flow/Scene.h

@@ -81,6 +81,7 @@ namespace oxygine
 
             /*closes current scene**/
             void finish(Event* ev = 0);
+            void finishNoResult();
 
             /**
             Automatically removes Scene from stack (flow).