1
0
Fork 0

src/Main/options.cxx: fixed Windows build error - use SGTimeStamp::sleepForMSec(), not sleep().

This commit is contained in:
Julian Smith 2021-02-19 10:16:34 +00:00
parent 0019b22046
commit 5b2fd572e4

View file

@ -52,6 +52,8 @@
#include <simgear/scene/material/mat.hxx>
#include <simgear/sound/soundmgr.hxx>
#include <simgear/misc/strutils.hxx>
#include <simgear/timing/timestamp.hxx>
#include <Autopilot/route_mgr.hxx>
#include <Aircraft/replay.hxx>
#include <Aircraft/initialstate.hxx>
@ -1698,7 +1700,7 @@ fgOptLoadTape(const char* arg)
SG_LOG(SG_GENERAL, SG_POPUP, "Timeout while reading downloaded recording from " << url << ". local path=" << path);
return FG_OPTIONS_EXIT;
}
sleep(1);
SGTimeStamp::sleepForMSec(1000);
}
}