VOXEL: reduced code duplication

master
Martin Gerhardy 2016-04-22 20:53:52 +02:00
parent 30c91d7242
commit 1698fc6f10
1 changed files with 1 additions and 3 deletions

View File

@ -683,8 +683,8 @@ void World::cleanupFutures() {
}
void World::onFrame(long dt) {
cleanupFutures();
if (_cancelThreads) {
cleanupFutures();
if (!_futures.empty()) {
return;
}
@ -696,8 +696,6 @@ void World::onFrame(long dt) {
Log::info("reset the world");
});
_cancelThreads = false;
} else {
cleanupFutures();
}
}