diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-24 05:32:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-24 05:32:41 +0300 |
commit | 65d6e86c20604e76ac0de46e54bf5571c570fd53 (patch) | |
tree | a9487422a0a2e1a7be8db5a1ade415b8011dfe0f /src/localplayer.cpp | |
parent | ccb35758a391807322265994b1712c8d7ed2d16c (diff) | |
download | manaplus-65d6e86c20604e76ac0de46e54bf5571c570fd53.tar.gz manaplus-65d6e86c20604e76ac0de46e54bf5571c570fd53.tar.bz2 manaplus-65d6e86c20604e76ac0de46e54bf5571c570fd53.tar.xz manaplus-65d6e86c20604e76ac0de46e54bf5571c570fd53.zip |
Add reset yellow bar command to bars context menu.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 26 |
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()) |