Fixed end of game when test AI is defined
This commit is contained in:
@@ -472,17 +472,18 @@ void GameStateDuel::Update(float dt)
|
|||||||
handleResults(game);
|
handleResults(game);
|
||||||
End();
|
End();
|
||||||
Start();
|
Start();
|
||||||
}
|
|
||||||
if(mWorkerThread.empty())
|
|
||||||
{ // "I don't like to wait" mode
|
|
||||||
size_t thread_count = 1;
|
|
||||||
startTime = JGEGetTime();
|
|
||||||
|
|
||||||
#ifdef QT_CONFIG
|
if(mWorkerThread.empty())
|
||||||
thread_count = QThread::idealThreadCount();
|
{ // "I don't like to wait" mode
|
||||||
#endif
|
size_t thread_count = 1;
|
||||||
for(size_t i = 0; i < (thread_count-1); i++)
|
startTime = JGEGetTime();
|
||||||
mWorkerThread.push_back(boost::thread(ThreadProc, this));
|
|
||||||
|
#ifdef QT_CONFIG
|
||||||
|
thread_count = QThread::idealThreadCount();
|
||||||
|
#endif
|
||||||
|
for(size_t i = 0; i < (thread_count-1); i++)
|
||||||
|
mWorkerThread.push_back(boost::thread(ThreadProc, this));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user