From 3a0ae3df58d4648eb8c43781955df71f1a7ab135 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Sat, 4 Aug 2012 10:53:48 +0200 Subject: [PATCH] hla: Do not call time advance with non positive increment. --- simgear/hla/HLAFederate.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5