summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-15 15:20:20 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-15 15:20:20 +0200
commit6298878bfa996754fad0e530a209411f72cfdfac (patch)
tree06aa74e9f540e4951f350893586fd45359170611 /src/server.h
parent899004207d35350117611aaa2ee2130bf2519cd5 (diff)
downloadminetest-6298878bfa996754fad0e530a209411f72cfdfac.tar.gz
minetest-6298878bfa996754fad0e530a209411f72cfdfac.tar.bz2
minetest-6298878bfa996754fad0e530a209411f72cfdfac.zip
Add "simple singleplayer mode"; Fix a number of GUI things
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h
index 0b4c67deb..31e3ed176 100644
--- a/src/server.h
+++ b/src/server.h
@@ -410,7 +410,8 @@ public:
Server(
const std::string &path_world,
const std::string &path_config,
- const SubgameSpec &gamespec
+ const SubgameSpec &gamespec,
+ bool simple_singleplayer_mode
);
~Server();
void start(unsigned short port);
@@ -659,6 +660,9 @@ private:
std::string m_path_config;
// Subgame specification
SubgameSpec m_gamespec;
+ // If true, do not allow multiple players and hide some multiplayer
+ // functionality
+ bool m_simple_singleplayer_mode;
// Equivalent of /usr/share/minetest/server
std::string m_path_share;