From: James Turner Date: Sun, 6 Oct 2013 17:08:54 +0000 (+0200) Subject: Reset: event manager can be unbound. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aeb0e9aac370cb7c37e6d04b4791c9eaa4798d91;p=simgear.git Reset: event manager can be unbound. --- diff --git a/simgear/structure/event_mgr.cxx b/simgear/structure/event_mgr.cxx index 823fdf81..b855fae2 100644 --- a/simgear/structure/event_mgr.cxx +++ b/simgear/structure/event_mgr.cxx @@ -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); diff --git a/simgear/structure/event_mgr.hxx b/simgear/structure/event_mgr.hxx index b8dda323..efd34aa9 100644 --- a/simgear/structure/event_mgr.hxx +++ b/simgear/structure/event_mgr.hxx @@ -73,7 +73,8 @@ public: virtual void init() {} virtual void update(double delta_time_sec); - + virtual void unbind(); + void setRealtimeProperty(SGPropertyNode* node) { _rtProp = node; } /**