projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f214940
)
Make sure that settings are written to config file when settings are removed.
author
Jürgen Doser
<jurgen.doser@gmail.com>
Tue, 22 Jan 2013 18:00:48 +0000
(19:00 +0100)
committer
Jürgen Doser
<jurgen.doser@gmail.com>
Tue, 22 Jan 2013 18:05:46 +0000
(19:05 +0100)
Previously, settings where only written when a value has changed, and
removal of a setting value didn't count as a change.
src/settings.h
patch
|
blob
|
history
diff --git
a/src/settings.h
b/src/settings.h
index 6d6db220c1871cbc496aca76c929e42103db2ef4..2b46676c6b7ae03a440b2a9870f4494b2599a51f 100644
(file)
--- 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;
}