summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index c7ad181df..803101243 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -3845,6 +3845,32 @@ int LocalPlayer::getAttackMobIndex(std::string name)
return (*i).second;
}
+void LocalPlayer::resetYellowBar()
+{
+ mInvertDirection = config.resetIntValue("invertMoveDirection");
+ mCrazyMoveType = config.resetIntValue("crazyMoveType");
+ mMoveToTargetType = config.resetIntValue("moveToTargetType");
+ mFollowMode = config.resetIntValue("followMode");
+ mAttackWeaponType = config.resetIntValue("attackWeaponType");
+ mAttackType = config.resetIntValue("attackType");
+ mMagicAttackType = config.resetIntValue("magicAttackType");
+ mQuickDropCounter = config.resetIntValue("quickDropCounter");
+ mPickUpType = config.resetIntValue("pickUpType");
+ if (viewport)
+ {
+ viewport->setDebugPath(0);
+ if (viewport->getCameraMode())
+ viewport->toggleCameraMode();
+ }
+ if (mMap)
+ mMap->setDebugFlags(0);
+ mImitationMode = config.resetIntValue("imitationMode");
+ mDisableGameModifiers = config.resetBoolValue("disableGameModifiers");
+
+ if (miniStatusWindow)
+ miniStatusWindow->updateStatus();
+}
+
void AwayListener::action(const gcn::ActionEvent &event)
{
if (event.getId() == "ok" && player_node && player_node->getAwayMode())