From 294888f84a32195e996e2cdc111a665398032b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 9 Sep 2010 03:36:11 +0200 Subject: [PATCH] Remove usleep() from reveal, replaced by normal sleep(). --- tools/supported/reveal.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/supported/reveal.cpp b/tools/supported/reveal.cpp index 4233be189..2c82075f7 100644 --- a/tools/supported/reveal.cpp +++ b/tools/supported/reveal.cpp @@ -43,9 +43,12 @@ int main (void) cout << "Pausing..." << endl; // horrible hack to make sure the pause is really set + // preblem here is that we could be 'arriving' at the wrong time and DF could be in the middle of a frame. + // that could mean that revealing, even with suspending DF's thread, would mean unleashing hell *in the same frame* + // this here hack sets the pause state, resumes DF, waits a second for it to enter the pause (I know, BS value.) and suspends. Gui->SetPauseState(true); DF->Resume(); - usleep(100); + sleep(1); DF->Suspend(); // init the map