diff options
author | Bertram <bertram@cegetel.net> | 2010-02-01 23:59:14 +0100 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2010-02-01 23:59:14 +0100 |
commit | d6329c13a589affed482783272db23e4980a5507 (patch) | |
tree | 9f59a4f5f02d36add0c42f22b36a980c9428cc66 /src/gui | |
parent | 35bddde62fe1b7e60a78e2f699e1035ea6579066 (diff) | |
download | mana-client-d6329c13a589affed482783272db23e4980a5507.tar.gz mana-client-d6329c13a589affed482783272db23e4980a5507.tar.bz2 mana-client-d6329c13a589affed482783272db23e4980a5507.tar.xz mana-client-d6329c13a589affed482783272db23e4980a5507.zip |
Small cleanups.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/setup_video.cpp | 4 | ||||
-rw-r--r-- | src/gui/viewport.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index d7ad3e5f..aaa3ea35 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -449,7 +449,7 @@ void Setup_Video::cancel() config.setValue("speech", mSpeechMode); config.setValue("showownname", mNameEnabled); if (player_node) - player_node->mUpdateName = true; + player_node->setCheckNameSetting(true); config.setValue("guialpha", mOpacity); config.setValue("opengl", mOpenGLEnabled); config.setValue("showpickupchat", mPickupChatEnabled); @@ -529,7 +529,7 @@ void Setup_Video::action(const gcn::ActionEvent &event) // Notify the local player that settings have changed for the name // and requires an update if (player_node) - player_node->mUpdateName = true; + player_node->setCheckNameSetting(true); config.setValue("showownname", mNameCheckBox->isSelected()); } else if (event.getId() == "fpslimitslider") diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 76bf5a22..1a34fa96 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -109,7 +109,7 @@ void Viewport::draw(gcn::Graphics *gcnGraphics) // Ensure the client doesn't freak out if a feature localplayer uses // is dependent on a map. - player_node->mMapInitialized = true; + player_node->setMapInitialized(true); // Avoid freaking out when tick_time overflows if (tick_time < lastTick) @@ -201,9 +201,9 @@ void Viewport::draw(gcn::Graphics *gcnGraphics) } } - if (player_node->mUpdateName) + if (player_node->getCheckNameSetting()) { - player_node->mUpdateName = false; + player_node->setCheckNameSetting(false); player_node->setName(player_node->getName()); } |