summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-22 00:40:36 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-22 00:40:36 +0300
commitaaa50f7ef8de21ea1f32065beb15a7a58faf28a5 (patch)
tree2b168db875cb83f8d2d1c5442da10776214e6877 /src
parent57e10676912d5506ff3cab9edbb77335828d597c (diff)
downloadmanaplus-aaa50f7ef8de21ea1f32065beb15a7a58faf28a5.tar.gz
manaplus-aaa50f7ef8de21ea1f32065beb15a7a58faf28a5.tar.bz2
manaplus-aaa50f7ef8de21ea1f32065beb15a7a58faf28a5.tar.xz
manaplus-aaa50f7ef8de21ea1f32065beb15a7a58faf28a5.zip
Remove unsued macro callYellowBar
And rename callYellowBar2 into callYellowBar
Diffstat (limited to 'src')
-rw-r--r--src/actionmanager.cpp29
1 files changed, 10 insertions, 19 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index a9c779dbe..e46517a96 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -90,15 +90,6 @@
#define impHandler0(name) bool name(const InputEvent &event A_UNUSED)
#define callYellowBar(name) \
- if (player_node) \
- { \
- player_node->name(!inputManager.isActionActive( \
- InputAction::STOP_ATTACK)); \
- return true; \
- } \
- return false;
-
-#define callYellowBar2(name) \
if (modifiers) \
{ \
modifiers->name(!inputManager.isActionActive( \
@@ -465,12 +456,12 @@ impHandler0(itenplz)
impHandler0(changeCrazyMove)
{
- callYellowBar2(changeCrazyMoveType);
+ callYellowBar(changeCrazyMoveType);
}
impHandler0(changePickupType)
{
- callYellowBar2(changePickUpType);
+ callYellowBar(changePickUpType);
}
impHandler0(moveToTarget)
@@ -509,27 +500,27 @@ impHandler0(setHome)
impHandler0(changeMoveType)
{
- callYellowBar2(changeMoveType);
+ callYellowBar(changeMoveType);
}
impHandler0(changeAttackWeaponType)
{
- callYellowBar2(changeAttackWeaponType);
+ callYellowBar(changeAttackWeaponType);
}
impHandler0(changeAttackType)
{
- callYellowBar2(changeAttackType);
+ callYellowBar(changeAttackType);
}
impHandler0(changeFollowMode)
{
- callYellowBar2(changeFollowMode);
+ callYellowBar(changeFollowMode);
}
impHandler0(changeImitationMode)
{
- callYellowBar2(changeImitationMode);
+ callYellowBar(changeImitationMode);
}
impHandler0(magicAttack)
@@ -544,17 +535,17 @@ impHandler0(magicAttack)
impHandler0(changeMagicAttackType)
{
- callYellowBar2(changeMagicAttackType);
+ callYellowBar(changeMagicAttackType);
}
impHandler0(changePvpMode)
{
- callYellowBar2(changePvpAttackType);
+ callYellowBar(changePvpAttackType);
}
impHandler0(changeMoveToTarget)
{
- callYellowBar2(changeMoveToTargetType);
+ callYellowBar(changeMoveToTargetType);
}
impHandler0(copyEquippedToOutfit)