Skip to content

Commit e2d54c9

Browse files
committedDec 28, 2015
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.
1 parent 8a46c5d commit e2d54c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

Diff for: ‎src/game.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,9 @@ void Game::run()
18161816
&& client->checkPrivilege("fast");
18171817
#endif
18181818

1819-
while (device->run() && !(*kill || g_gamecallback->shutdown_requested)) {
1819+
while (device->run()
1820+
&& !(*kill || g_gamecallback->shutdown_requested
1821+
|| server->getShutdownRequested())) {
18201822

18211823
/* Must be called immediately after a device->run() call because it
18221824
* uses device->getTimer()->getTime()

0 commit comments

Comments
 (0)
Please sign in to comment.