summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-22 01:41:19 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-22 01:41:19 +0300
commitd569dc78b5b50c0e6cbe84e48164e5774fd36de7 (patch)
treeabe4bf6e0822fe0d1ee2149f88cd0e6e4452c396 /src/being/localplayer.cpp
parentaaa50f7ef8de21ea1f32065beb15a7a58faf28a5 (diff)
downloadmanaverse-d569dc78b5b50c0e6cbe84e48164e5774fd36de7.tar.gz
manaverse-d569dc78b5b50c0e6cbe84e48164e5774fd36de7.tar.bz2
manaverse-d569dc78b5b50c0e6cbe84e48164e5774fd36de7.tar.xz
manaverse-d569dc78b5b50c0e6cbe84e48164e5774fd36de7.zip
move "change game modifiers" option into gamemodifiers.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp34
1 files changed, 2 insertions, 32 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index d7580b552..54dd93ff9 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -160,7 +160,6 @@ LocalPlayer::LocalPlayer(const int id, const uint16_t subtype) :
mEnableAdvert(config.getBoolValue("enableAdvert")),
mTradebot(config.getBoolValue("tradebot")),
mTargetOnlyReachable(config.getBoolValue("targetOnlyReachable")),
- mDisableGameModifiers(config.getBoolValue("disableGameModifiers")),
mIsServerBuggy(serverConfig.getValueBool("enableBuggyServers", true)),
mSyncPlayerMove(config.getBoolValue("syncPlayerMove")),
mDrawPath(config.getBoolValue("drawPath")),
@@ -1357,36 +1356,6 @@ std::string LocalPlayer::getCameraModeString()
viewport->getCameraMode(), cameraModeSize));
}
-const unsigned gameModifiersSize = 2;
-
-void LocalPlayer::switchGameModifiers()
-{
- mDisableGameModifiers = !mDisableGameModifiers;
- config.setValue("disableGameModifiers", mDisableGameModifiers);
- UpdateStatusListener::distributeEvent();
-
- const std::string str = getGameModifiersString();
- if (str.size() > 4)
- debugMsg(str.substr(4));
-}
-
-static const char *const gameModifiersStrings[] =
-{
- // TRANSLATORS: game modifiers state in status bar
- N_("Game modifiers are enabled"),
- // TRANSLATORS: game modifiers state in status bar
- N_("Game modifiers are disabled"),
- // TRANSLATORS: game modifiers state in status bar
- N_("Game modifiers are unknown")
-};
-
-std::string LocalPlayer::getGameModifiersString()
-{
- return gettext(getVarItem(&gameModifiersStrings[0],
- mDisableGameModifiers, gameModifiersSize));
-}
-
-
void LocalPlayer::changeEquipmentBeforeAttack(const Being *const target) const
{
if (settings.attackWeaponType == 1 || !target || !PlayerInfo::getInventory())
@@ -3391,7 +3360,8 @@ void LocalPlayer::resetYellowBar()
if (mMap)
mMap->setDrawLayersFlags(0);
settings.imitationMode = config.resetIntValue("imitationMode");
- mDisableGameModifiers = config.resetBoolValue("disableGameModifiers");
+ settings.disableGameModifiers = config.resetBoolValue(
+ "disableGameModifiers");
UpdateStatusListener::distributeEvent();
}