Sdk/Application: Fix world updating once after window closing

Former-commit-id: f02603702c2e1e79fc71d95739adeedec0347457
This commit is contained in:
Lynix 2016-04-01 22:25:30 +02:00
parent d8610d139b
commit 812e7a940c
1 changed files with 8 additions and 8 deletions

View File

@ -28,20 +28,20 @@ namespace Ndk
}
#endif
#ifndef NDK_SERVER
if (m_exitOnClosedWindows && !hasAtLeastOneActiveWindow)
return false;
#endif
if (m_shouldQuit)
return false;
m_updateTime = m_updateClock.GetSeconds();
m_updateClock.Restart();
for (World& world : m_worlds)
world.Update(m_updateTime);
if (m_shouldQuit)
return false;
#ifndef NDK_SERVER
if (m_exitOnClosedWindows && !hasAtLeastOneActiveWindow)
return false;
#endif
return true;
}