aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-03 12:02:27 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-03 12:02:27 +0200
commit871e6c0c73d31420a7a3521ddef517198b97f1f8 (patch)
treea3c7fe1a6ebfd8b8e3b9acefd006b7bdf8733269 /src
parent392485aa454e871566a67afc61e11331f9d27397 (diff)
downloadminetest-871e6c0c73d31420a7a3521ddef517198b97f1f8.tar.gz
minetest-871e6c0c73d31420a7a3521ddef517198b97f1f8.tar.bz2
minetest-871e6c0c73d31420a7a3521ddef517198b97f1f8.zip
On SIGINT in main menu, don't connect before shutting down
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 11e1a8dc1..b7c3ceffe 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1631,7 +1631,7 @@ int main(int argc, char *argv[])
}
// Break out of menu-game loop to shut down cleanly
- if(device->run() == false)
+ if(device->run() == false || kill == true)
break;
/*