diff options
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()); } |