From b62fbaf9ced18626d9ce66a8db58415edc36696d Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 12 Apr 2002 05:07:28 +0000 Subject: [PATCH] Run a registered event as it's registered and then at the specified interval. --- src/Time/FGEventMgr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Time/FGEventMgr.cxx b/src/Time/FGEventMgr.cxx index c8aedd488..d22c3b928 100644 --- a/src/Time/FGEventMgr.cxx +++ b/src/Time/FGEventMgr.cxx @@ -36,6 +36,8 @@ FGEventMgr::FGEvent::FGEvent( const char* name, max_time(0), count(0) { + if (status == FG_EVENT_READY) + this->run(); } @@ -131,8 +133,6 @@ FGEventMgr::update( int dt ) void FGEventMgr::Register( const FGEvent& event ) { -// if (event.is_ready()) -// event.run(); event_table.push_back( event ); SG_LOG( SG_EVENT, SG_INFO, "Registered event " << event.name()