]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/httpget.cxx
Terrain tiles are not light volumes
[simgear.git] / simgear / io / httpget.cxx
index e10a29b41659dd3fc992b77358296ca5d40ce65b..3b0506c5889047c708709a8707760135c6f3bcce 100644 (file)
@@ -12,7 +12,7 @@
 #include <simgear/io/HTTPRequest.hxx>
 #include <simgear/io/sg_netChannel.hxx>
 #include <simgear/misc/strutils.hxx>
-#include <simgear/misc/sg_sleep.hxx>
+#include <simgear/timing/timestamp.hxx>
 
 using namespace simgear;
 using std::cout;
@@ -94,7 +94,7 @@ private:
 int main(int argc, char* argv[])
 {
     HTTP::Client cl;
-    SGFile* outFile;
+    SGFile* outFile = 0;
     string proxy, proxyAuth;
     string_list headers;
     string url;
@@ -156,7 +156,7 @@ int main(int argc, char* argv[])
     
     while (!req->complete()) {
         cl.update();
-        sleepForMSec(100);
+        SGTimeStamp::sleepForMSec(100);
     }
         
     if (req->responseCode() != 200) {