]> git.mxchange.org Git - flightgear.git/commitdiff
Bug 1246, Nasal repeating timers fire immediately.
authorJames Turner <zakalawe@mac.com>
Sat, 9 Nov 2013 16:01:57 +0000 (08:01 -0800)
committerJames Turner <zakalawe@mac.com>
Sat, 9 Nov 2013 16:01:57 +0000 (08:01 -0800)
Initial delay is passed separately to interval in the
API, oops.

src/Scripting/NasalSys.cxx

index e55ba5a31f8d65332f708b3c0c7787a5d21f642b..24a0ecdbff8f574b432dd0e97b8b272693e5cd36 100644 (file)
@@ -126,7 +126,8 @@ public:
     if (_singleShot) {
       globals->get_event_mgr()->addEvent(_name, this, &TimerObj::invoke, _interval);
     } else {
-      globals->get_event_mgr()->addTask(_name, this, &TimerObj::invoke, _interval);
+      globals->get_event_mgr()->addTask(_name, this, &TimerObj::invoke,
+                                        _interval, _interval /* delay */);
     }
   }