From 0888773fc1de5cc2aa1d92564e8d05231189e6f9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Aug 2014 21:43:19 +0300 Subject: Move chat command /addattack into actions. --- src/input/inputaction.h | 1 + src/input/inputactionmap.h | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'src/input') 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} }; -- cgit v1.2.3-70-g09d2