hla: Fix timeAdvanceAvailable handling when no federate is regulating.
This commit is contained in:
@@ -649,14 +649,11 @@ HLAFederate::timeAdvanceAvailable()
|
|||||||
}
|
}
|
||||||
|
|
||||||
SGTimeStamp timeStamp;
|
SGTimeStamp timeStamp;
|
||||||
if (!_rtiFederate->queryGALT(timeStamp)) {
|
if (_rtiFederate->queryGALT(timeStamp)) {
|
||||||
SG_LOG(SG_NETWORK, SG_WARN, "HLA: Could not query GALT!");
|
if (!_rtiFederate->timeAdvanceRequestAvailable(timeStamp)) {
|
||||||
return false;
|
SG_LOG(SG_NETWORK, SG_WARN, "HLA: Time advance request failed!");
|
||||||
}
|
return false;
|
||||||
|
}
|
||||||
if (!_rtiFederate->timeAdvanceRequestAvailable(timeStamp)) {
|
|
||||||
SG_LOG(SG_NETWORK, SG_WARN, "HLA: Time advance request failed!");
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return processMessages();
|
return processMessages();
|
||||||
|
|||||||
Reference in New Issue
Block a user