summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMajin Sniper <majinsniper@gmx.de>2009-02-23 19:37:44 +0100
committerIra Rice <irarice@gmail.com>2009-03-10 07:33:04 -0600
commit03507766fa4ee07491b7ee702093669de6222c9c (patch)
treef497866e15d21eb31fd42e8a2808a72059e74090
parent0fb4dc37c61341a237bab30896bd2c457222ed03 (diff)
downloadmana-03507766fa4ee07491b7ee702093669de6222c9c.tar.gz
mana-03507766fa4ee07491b7ee702093669de6222c9c.tar.bz2
mana-03507766fa4ee07491b7ee702093669de6222c9c.tar.xz
mana-03507766fa4ee07491b7ee702093669de6222c9c.zip
Fix video config cancel button for "show name".
The cancel button in Video configuration window doesn't switch back the "show name" setting to the original state. This patch fixes that.
-rw-r--r--src/gui/setup_video.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 7e3d483c..59eb4096 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -414,6 +414,8 @@ void Setup_Video::cancel()
config.setValue("particleeffects", mParticleEffectsEnabled ? true : false);
config.setValue("speech", mSpeechMode);
config.setValue("showownname", mNameEnabled ? true : false);
+ if (player_node)
+ player_node->mUpdateName = true;
config.setValue("guialpha", mOpacity);
config.setValue("opengl", mOpenGLEnabled ? true : false);
config.setValue("showpickupchat", mPickupChatEnabled ? true : false);