mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41: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();
|
||||
|
||||
logger.info() << "main loop started";
|
||||
while (!window.isShouldClose()) {
|
||||
while (!window.isShouldClose() && !engine.isQuitSignal()) {
|
||||
time.update(window.time());
|
||||
engine.applicationTick();
|
||||
engine.updateFrontend();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue