Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
est31 committed Dec 28, 2015
1 parent 8a46c5d commit e2d54c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/game.cpp
Expand Up @@ -1816,7 +1816,9 @@ void Game::run()
&& client->checkPrivilege("fast");
#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
* uses device->getTimer()->getTime()
Expand Down

0 comments on commit e2d54c9

Please sign in to comment.