mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
add test.quit, test.reopen_world
This commit is contained in:
parent
fa1646a9bd
commit
5e55e20ec4
6 changed files with 55 additions and 2 deletions
|
|
@ -41,6 +41,11 @@ void ServerMainloop::run() {
|
|||
double delta = targetDelta;
|
||||
auto begin = steady_clock::now();
|
||||
while (process->isActive()) {
|
||||
if (engine.isQuitSignal()) {
|
||||
process->terminate();
|
||||
logger.info() << "script has been terminated due to quit signal";
|
||||
break;
|
||||
}
|
||||
time.step(delta);
|
||||
process->update();
|
||||
if (controller) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue