From: Mathias Froehlich Date: Sat, 4 Aug 2012 08:53:48 +0000 (+0200) Subject: hla: Do not call time advance with non positive increment. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3a0ae3df58d4648eb8c43781955df71f1a7ab135;p=simgear.git hla: Do not call time advance with non positive increment. --- diff --git a/simgear/hla/HLAFederate.cxx b/simgear/hla/HLAFederate.cxx index 75465af4..d39d8aaa 100644 --- a/simgear/hla/HLAFederate.cxx +++ b/simgear/hla/HLAFederate.cxx @@ -1069,7 +1069,10 @@ HLAFederate::init() bool HLAFederate::update() { - return timeAdvanceBy(_timeIncrement); + if (_timeIncrement <= SGTimeStamp::fromSec(0)) + return processMessages(); + else + return timeAdvanceBy(_timeIncrement); } bool