]> git.lizzy.rs Git - minetest.git/blobdiff - src/guiMainMenu.h
[CSM] Add flavour limits controlled by server (#5930)
[minetest.git] / src / guiMainMenu.h
index 711ad10f8fd61afaa2bddfce2605c34961093d88..c1c3c88a99c16ebea03e964bb97215974ffa6263 100644 (file)
@@ -27,14 +27,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 struct MainMenuDataForScript {
 
-       MainMenuDataForScript() :
-               reconnect_requested(false)
-       {}
+       MainMenuDataForScript() {}
 
        // Whether the server has requested a reconnect
-       bool reconnect_requested;
-
-       std::string errormessage;
+       bool reconnect_requested = false;
+       std::string errormessage = "";
 };
 
 struct MainMenuData {
@@ -46,22 +43,16 @@ struct MainMenuData {
        std::string name;
        std::string password;
        // Whether to reconnect
-       bool do_reconnect;
+       bool do_reconnect = false;
 
        // Server options
-       bool enable_public;
-       int selected_world;
-       bool simple_singleplayer_mode;
+       int selected_world = 0;
+       bool simple_singleplayer_mode = false;
 
        // Data to be passed to the script
        MainMenuDataForScript script_data;
 
-       MainMenuData():
-               do_reconnect(false),
-               enable_public(false),
-               selected_world(0),
-               simple_singleplayer_mode(false)
-       {}
+       MainMenuData() {}
 };
 
 #endif