hla: Do not call time advance with non positive increment.
This commit is contained in:
@@ -1069,7 +1069,10 @@ HLAFederate::init()
|
||||
bool
|
||||
HLAFederate::update()
|
||||
{
|
||||
return timeAdvanceBy(_timeIncrement);
|
||||
if (_timeIncrement <= SGTimeStamp::fromSec(0))
|
||||
return processMessages();
|
||||
else
|
||||
return timeAdvanceBy(_timeIncrement);
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user