hla: use the new HLAFederate::processMessages() call.
This commit is contained in:
parent
56912c17c5
commit
761644c51d
1 changed files with 1 additions and 8 deletions
|
@ -1240,14 +1240,7 @@ FGHLA::process()
|
||||||
|
|
||||||
// Then get news from others and process possible update requests
|
// Then get news from others and process possible update requests
|
||||||
if (get_direction() & (SG_IO_IN|SG_IO_OUT)) {
|
if (get_direction() & (SG_IO_IN|SG_IO_OUT)) {
|
||||||
|
_hlaFederate->processMessages();
|
||||||
// I hoped that the tick call itself would do that job with the timestamps, but this way it works
|
|
||||||
SGTimeStamp timestamp = SGTimeStamp::now();
|
|
||||||
timestamp += SGTimeStamp::fromSec(0.01);
|
|
||||||
do {
|
|
||||||
if (!_hlaFederate->tick(0.0, 0.0))
|
|
||||||
break;
|
|
||||||
} while (SGTimeStamp::now() <= timestamp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue