From 26cf98ccfc70909be916d29f0cc480f6929cbb08 Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Mon, 24 Nov 2014 13:52:27 +1000 Subject: Fix client "double saving" simple singleplayer local maps --- src/client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index c1806df99..074ac9ba6 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -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"); -- cgit v1.2.3