mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
add quit signal check to the client mainloop
This commit is contained in:
parent
4a53090610
commit
ee9b2ab266
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ void Mainloop::run() {
|
||||||
auto& appScripts = engine.getAppScripts();
|
auto& appScripts = engine.getAppScripts();
|
||||||
|
|
||||||
logger.info() << "main loop started";
|
logger.info() << "main loop started";
|
||||||
while (!window.isShouldClose()) {
|
while (!window.isShouldClose() && !engine.isQuitSignal()) {
|
||||||
time.update(window.time());
|
time.update(window.time());
|
||||||
engine.applicationTick();
|
engine.applicationTick();
|
||||||
engine.updateFrontend();
|
engine.updateFrontend();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue