]> git.lizzy.rs Git - minetest.git/blobdiff - src/client.cpp
Increase step smoothing to fit 1:1 stairs (works well on slabs too)
[minetest.git] / src / client.cpp
index c1806df9961ccfdb79dce105feb7c16c78cbfbf3..074ac9ba60c9b342b061a2a5cb4c2717be84c5d8 100644 (file)
@@ -219,6 +219,7 @@ Client::Client(
                IrrlichtDevice *device,
                const char *playername,
                std::string password,
+               bool is_simple_singleplayer_game,
                MapDrawControl &control,
                IWritableTextureSource *tsrc,
                IWritableShaderSource *shsrc,
@@ -280,7 +281,8 @@ Client::Client(
                m_env.addPlayer(player);
        }
 
-       if (g_settings->getBool("enable_local_map_saving")) {
+       if (g_settings->getBool("enable_local_map_saving")
+                       && !is_simple_singleplayer_game) {
                const std::string world_path = porting::path_user + DIR_DELIM + "worlds"
                                + DIR_DELIM + "server_" + g_settings->get("address")
                                + "_" + g_settings->get("remote_port");