diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-25 19:13:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-25 19:13:27 +0300 |
commit | 7d6d3d997614e8e76ca9044ca8ed5a81d3b14a95 (patch) | |
tree | 16e2456b0eda0e4dd81863374206038c6eb4e26f /src/being/localplayer.cpp | |
parent | d4e289e6bed3cff65e106fc6ed5aabfedb4e7da8 (diff) | |
download | plus-7d6d3d997614e8e76ca9044ca8ed5a81d3b14a95.tar.gz plus-7d6d3d997614e8e76ca9044ca8ed5a81d3b14a95.tar.bz2 plus-7d6d3d997614e8e76ca9044ca8ed5a81d3b14a95.tar.xz plus-7d6d3d997614e8e76ca9044ca8ed5a81d3b14a95.zip |
Move reset yellow bar into gamemmodifiers.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index c3937badc..a980ec73b 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -3204,33 +3204,6 @@ void LocalPlayer::checkNewName(Being *const being) } } -void LocalPlayer::resetYellowBar() -{ - settings.moveType = 0; - settings.crazyMoveType = config.resetIntValue("crazyMoveType"); - settings.moveToTargetType = config.resetIntValue("moveToTargetType"); - settings.followMode = config.resetIntValue("followMode"); - settings.attackWeaponType = config.resetIntValue("attackWeaponType"); - settings.attackType = config.resetIntValue("attackType"); - settings.magicAttackType = config.resetIntValue("magicAttackType"); - settings.pvpAttackType = config.resetIntValue("pvpAttackType"); - settings.quickDropCounter = config.resetIntValue("quickDropCounter"); - settings.pickUpType = config.resetIntValue("pickUpType"); - if (viewport) - { - settings.mapDrawType = MapType::NORMAL; - if (settings.cameraMode) - viewport->toggleCameraMode(); - } - if (mMap) - mMap->setDrawLayersFlags(0); - settings.imitationMode = config.resetIntValue("imitationMode"); - settings.disableGameModifiers = config.resetBoolValue( - "disableGameModifiers"); - - UpdateStatusListener::distributeEvent(); -} - unsigned char LocalPlayer::getWalkMask() const { // for now blocking all types of collisions |