]> git.lizzy.rs Git - minetest.git/blobdiff - src/game.h
Fix game selection in world creation (used always the first one)
[minetest.git] / src / game.h
index a9db6c3e1c6397bfab39d8c96c7ee72a07a82bed..4ca5a2433956ca1cfa69bd6ca653a6e5651b6602 100644 (file)
@@ -22,7 +22,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "common_irrlicht.h"
 #include <string>
-
 #include "keycode.h"
 
 class KeyList : protected core::list<KeyPress>
@@ -122,6 +121,9 @@ class InputHandler
        virtual void clear() {};
 };
 
+class ChatBackend;  /* to avoid having to include chat.h */
+struct SubgameSpec;
+
 void the_game(
        bool &kill,
        bool random_input,
@@ -131,10 +133,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
+       std::string configpath,
+       ChatBackend &chat_backend,
+       const SubgameSpec &gamespec // Used for local game
 );
 
 #endif