summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 21:43:19 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 21:43:19 +0300
commit0888773fc1de5cc2aa1d92564e8d05231189e6f9 (patch)
tree001209ae09a69d15d29007d8a1762de56c94e362 /src/input
parentac2cda962d5fc3e23858527be45a8ae7b9856b84 (diff)
downloadmv-0888773fc1de5cc2aa1d92564e8d05231189e6f9.tar.gz
mv-0888773fc1de5cc2aa1d92564e8d05231189e6f9.tar.bz2
mv-0888773fc1de5cc2aa1d92564e8d05231189e6f9.tar.xz
mv-0888773fc1de5cc2aa1d92564e8d05231189e6f9.zip
Move chat command /addattack into actions.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/inputaction.h1
-rw-r--r--src/input/inputactionmap.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/src/input/inputaction.h b/src/input/inputaction.h
index b9e412e3f..dfdab0777 100644
--- a/src/input/inputaction.h
+++ b/src/input/inputaction.h
@@ -390,6 +390,7 @@ namespace InputAction
WAIT,
UPTIME,
ADD_PRIORITY_ATTACK,
+ ADD_ATTACK,
TOTAL
};
} // namespace InputAction
diff --git a/src/input/inputactionmap.h b/src/input/inputactionmap.h
index f7f8fde27..b7f59361d 100644
--- a/src/input/inputactionmap.h
+++ b/src/input/inputactionmap.h
@@ -3279,6 +3279,15 @@ static const InputActionData inputActionData[InputAction::TOTAL] = {
InputAction::NO_VALUE, 50,
InputCondition::INGAME,
"addpriorityattack",
+ true},
+ {"keyAddAttack",
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ InputType::UNKNOWN, InputAction::NO_VALUE,
+ Input::GRP_DEFAULT,
+ &Actions::addAttack,
+ InputAction::NO_VALUE, 50,
+ InputCondition::INGAME,
+ "addattack",
true}
};