]> git.mxchange.org Git - flightgear.git/commitdiff
hla: use the new HLAFederate::processMessages() call.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 2 Oct 2011 13:13:55 +0000 (15:13 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sun, 2 Oct 2011 13:13:55 +0000 (15:13 +0200)
src/Network/HLA/hla.cxx

index f71446a67e82387b203c8aabd5566d84b5b48c69..4f5e85ffbea7f1e37904242994222e81787b0e09 100644 (file)
@@ -1240,14 +1240,7 @@ FGHLA::process()
 
     // Then get news from others and process possible update requests
     if (get_direction() & (SG_IO_IN|SG_IO_OUT)) {
-
-        // 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);
+        _hlaFederate->processMessages();
     }
 
     return true;