From: Jürgen Doser Date: Tue, 22 Jan 2013 18:00:48 +0000 (+0100) Subject: Make sure that settings are written to config file when settings are removed. X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=f0998612457ddc3027618e7e446ed968a14385e7;p=zefram%2Fminetest%2Fminetest_engine.git Make sure that settings are written to config file when settings are removed. Previously, settings where only written when a value has changed, and removal of a setting value didn't count as a change. --- diff --git a/src/settings.h b/src/settings.h index 6d6db220..2b46676c 100644 --- a/src/settings.h +++ b/src/settings.h @@ -244,7 +244,9 @@ public: updated[name] = true; } - + else //file contains a setting which is not in m_settings + value_changed=true; + return true; }