Remove usleep() from reveal, replaced by normal sleep().

develop
Petr Mrázek 2010-09-09 03:36:11 +02:00
parent d041ed21f7
commit 294888f84a
1 changed files with 4 additions and 1 deletions

@ -43,9 +43,12 @@ int main (void)
cout << "Pausing..." << endl; cout << "Pausing..." << endl;
// horrible hack to make sure the pause is really set // 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); Gui->SetPauseState(true);
DF->Resume(); DF->Resume();
usleep(100); sleep(1);
DF->Suspend(); DF->Suspend();
// init the map // init the map