shutdown when requested from lua in singleplayer too
Before, minetest.request_shutdown didn't shut down singleplayer instances or server instances from the server tab. This commit fixes this. Fixes #3489.master
parent
8a46c5df1c
commit
e2d54c9f92
|
@ -1816,7 +1816,9 @@ void Game::run()
|
||||||
&& client->checkPrivilege("fast");
|
&& client->checkPrivilege("fast");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while (device->run() && !(*kill || g_gamecallback->shutdown_requested)) {
|
while (device->run()
|
||||||
|
&& !(*kill || g_gamecallback->shutdown_requested
|
||||||
|
|| server->getShutdownRequested())) {
|
||||||
|
|
||||||
/* Must be called immediately after a device->run() call because it
|
/* Must be called immediately after a device->run() call because it
|
||||||
* uses device->getTimer()->getTime()
|
* uses device->getTimer()->getTime()
|
||||||
|
|
Loading…
Reference in New Issue