aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-11 14:54:23 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-11 14:54:23 +0200
commit7f7fb9750df3aceec48f65cee657e15364e0a911 (patch)
tree6ab56068b0d4df0f669da1bae259061fd011da62 /src/game.cpp
parentdf190b8f87a563648337b3c90a4de75e6ffc09a1 (diff)
downloadminetest-7f7fb9750df3aceec48f65cee657e15364e0a911.tar.gz
minetest-7f7fb9750df3aceec48f65cee657e15364e0a911.tar.bz2
minetest-7f7fb9750df3aceec48f65cee657e15364e0a911.zip
command-line/world game selection
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 0e3f570f4..ebf5028b7 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -51,6 +51,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "itemdef.h"
#include "tile.h" // For TextureSource
#include "logoutputbuffer.h"
+#include "subgame.h"
/*
Setting this to 1 enables a special camera mode that forces
@@ -651,11 +652,12 @@ void the_game(
std::string map_dir,
std::string playername,
std::string password,
- std::string address,
+ std::string address, // If "", local server is used
u16 port,
std::wstring &error_message,
std::string configpath,
- ChatBackend &chat_backend
+ ChatBackend &chat_backend,
+ const SubgameSpec &gamespec // Used for local game
)
{
video::IVideoDriver* driver = device->getVideoDriver();
@@ -705,7 +707,7 @@ void the_game(
if(address == ""){
draw_load_screen(L"Creating server...", driver, font);
infostream<<"Creating server"<<std::endl;
- server = new Server(map_dir, configpath, "mesetint");
+ server = new Server(map_dir, configpath, gamespec);
server->start(port);
}