]> git.mxchange.org Git - simgear.git/commitdiff
hla: Do not call time advance with non positive increment.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 4 Aug 2012 08:53:48 +0000 (10:53 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 4 Aug 2012 12:38:10 +0000 (14:38 +0200)
simgear/hla/HLAFederate.cxx

index 75465af470ddf0d0fc96da1231c67c0e47db60f6..d39d8aaa4ad5f2c9c938ab61aec822f6e2de883c 100644 (file)
@@ -1069,7 +1069,10 @@ HLAFederate::init()
 bool
 HLAFederate::update()
 {
-    return timeAdvanceBy(_timeIncrement);
+    if (_timeIncrement <= SGTimeStamp::fromSec(0))
+        return processMessages();
+    else
+        return timeAdvanceBy(_timeIncrement);
 }
 
 bool