diff --git a/src/Core/Scripting/OOScriptTimer.m b/src/Core/Scripting/OOScriptTimer.m index e5bde6e0..edf7fdc5 100644 --- a/src/Core/Scripting/OOScriptTimer.m +++ b/src/Core/Scripting/OOScriptTimer.m @@ -4,7 +4,7 @@ OOScriptTimer.m Oolite -Copyright (C) 2004-2010 Giles C Williams and contributors +Copyright (C) 2004-2011 Giles C Williams and contributors This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License @@ -186,7 +186,7 @@ static OOPriorityQueue *sTimers = nil; double scaled; now = [UNIVERSE getTime]; - if (_nextTime <= now) + if (_nextTime < now) { if (_interval <= 0.0) return NO; // One-shot timer which has expired