summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-18 00:15:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-18 00:15:47 +0300
commit0a005f824f7e793fd33389bc5ea2bd569ff01f05 (patch)
tree4bccaf59372b25a4edb261e888b6ada732e0d635 /src
parentb55357c4bffafa629453abdfd6bb411d89ec5f25 (diff)
downloadmv-0a005f824f7e793fd33389bc5ea2bd569ff01f05.tar.gz
mv-0a005f824f7e793fd33389bc5ea2bd569ff01f05.tar.bz2
mv-0a005f824f7e793fd33389bc5ea2bd569ff01f05.tar.xz
mv-0a005f824f7e793fd33389bc5ea2bd569ff01f05.zip
Remove default parameters from changeMode function.
Diffstat (limited to 'src')
-rw-r--r--src/being/localplayer.cpp20
-rw-r--r--src/being/localplayer.h4
2 files changed, 12 insertions, 12 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 8ca76526e..0a05782d9 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -1295,7 +1295,7 @@ void LocalPlayer::changeCrazyMoveType()
{
mCrazyMoveState = 0;
changeMode(&mCrazyMoveType, crazyMoveTypeSize, "crazyMoveType",
- &LocalPlayer::getCrazyMoveTypeString, 1);
+ &LocalPlayer::getCrazyMoveTypeString, 1, true);
}
std::string LocalPlayer::getCrazyMoveTypeString()
@@ -1323,7 +1323,7 @@ static const unsigned moveToTargetTypeSize = 13;
void LocalPlayer::changeMoveToTargetType()
{
changeMode(&mMoveToTargetType, moveToTargetTypeSize, "moveToTargetType",
- &LocalPlayer::getMoveToTargetTypeString);
+ &LocalPlayer::getMoveToTargetTypeString, 0, true);
}
static const char *const moveToTargetTypeStrings[] =
@@ -1369,7 +1369,7 @@ static const unsigned followModeSize = 4;
void LocalPlayer::changeFollowMode()
{
changeMode(&mFollowMode, followModeSize, "followMode",
- &LocalPlayer::getFollowModeString);
+ &LocalPlayer::getFollowModeString, 0, true);
}
static const char *const followModeStrings[] =
@@ -1397,7 +1397,7 @@ const unsigned attackWeaponTypeSize = 4;
void LocalPlayer::changeAttackWeaponType()
{
changeMode(&mAttackWeaponType, attackWeaponTypeSize, "attackWeaponType",
- &LocalPlayer::getAttackWeaponTypeString, 1);
+ &LocalPlayer::getAttackWeaponTypeString, 1, true);
}
static const char *const attackWeaponTypeStrings[] =
@@ -1425,7 +1425,7 @@ const unsigned attackTypeSize = 4;
void LocalPlayer::changeAttackType()
{
changeMode(&mAttackType, attackTypeSize, "attackType",
- &LocalPlayer::getAttackTypeString);
+ &LocalPlayer::getAttackTypeString, 0, true);
}
static const char *const attackTypeStrings[] =
@@ -1453,7 +1453,7 @@ const unsigned quickDropCounterSize = 31;
void LocalPlayer::changeQuickDropCounter()
{
changeMode(&mQuickDropCounter, quickDropCounterSize, "quickDropCounter",
- &LocalPlayer::getQuickDropCounterString, 1);
+ &LocalPlayer::getQuickDropCounterString, 1, true);
}
std::string LocalPlayer::getQuickDropCounterString()
@@ -1484,7 +1484,7 @@ const unsigned pickUpTypeSize = 7;
void LocalPlayer::changePickUpType()
{
changeMode(&mPickUpType, pickUpTypeSize, "pickUpType",
- &LocalPlayer::getPickUpTypeString);
+ &LocalPlayer::getPickUpTypeString, 0, true);
}
static const char *const pickUpTypeStrings[] =
@@ -1546,7 +1546,7 @@ const unsigned magicAttackSize = 5;
void LocalPlayer::switchMagicAttack()
{
changeMode(&mMagicAttackType, magicAttackSize, "magicAttackType",
- &LocalPlayer::getMagicAttackString);
+ &LocalPlayer::getMagicAttackString, 0, true);
}
static const char *const magicAttackStrings[] =
@@ -1576,7 +1576,7 @@ const unsigned pvpAttackSize = 4;
void LocalPlayer::switchPvpAttack()
{
changeMode(&mPvpAttackType, pvpAttackSize, "pvpAttackType",
- &LocalPlayer::getPvpAttackString);
+ &LocalPlayer::getPvpAttackString, 0, true);
}
static const char *const pvpAttackStrings[] =
@@ -1604,7 +1604,7 @@ const unsigned imitationModeSize = 2;
void LocalPlayer::changeImitationMode()
{
changeMode(&mImitationMode, imitationModeSize, "imitationMode",
- &LocalPlayer::getImitationModeString);
+ &LocalPlayer::getImitationModeString, 0, true);
}
static const char *const imitationModeStrings[] =
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index 2b61c0d2e..2d7ec8069 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -520,8 +520,8 @@ class LocalPlayer final : public Being,
const unsigned limit,
const char *restrict const conf,
std::string (LocalPlayer::*const func)(),
- const unsigned def = 0,
- const bool save = true);
+ const unsigned def,
+ const bool save);
void crazyMove1();
void crazyMove2();