]> git.mxchange.org Git - simgear.git/commitdiff
Reset: event manager can be unbound.
authorJames Turner <zakalawe@mac.com>
Sun, 6 Oct 2013 17:08:54 +0000 (19:08 +0200)
committerJames Turner <zakalawe@mac.com>
Wed, 9 Oct 2013 07:59:40 +0000 (09:59 +0200)
simgear/structure/event_mgr.cxx
simgear/structure/event_mgr.hxx

index 823fdf81d67894ee93a02959f15e284c6f289c2d..b855fae2db941d9e16c58dbe4ba6ab5ff7ad388b 100644 (file)
@@ -38,6 +38,12 @@ void SGTimer::run()
     (*callback)();
 }
 
+void SGEventMgr::unbind()
+{
+    _freezeProp.clear();
+    _rtProp.clear();
+}
+
 void SGEventMgr::update(double delta_time_sec)
 {
     _simQueue.update(delta_time_sec);
index b8dda323fb7e7c15f4ae3156a69b1d52b99702dc..efd34aa9516c46681ee15df36d634ce4696d0125 100644 (file)
@@ -73,7 +73,8 @@ public:
 
     virtual void init() {}
     virtual void update(double delta_time_sec);
-
+    virtual void unbind();
+    
     void setRealtimeProperty(SGPropertyNode* node) { _rtProp = node; }
 
     /**