Added bots/buildings switch shortcut (#391)

master
krzys-h 2015-03-22 16:02:05 +01:00
parent 23c734c3c1
commit 56d66b3417
1 changed files with 5 additions and 0 deletions

View File

@ -842,6 +842,11 @@ bool CRobotMain::ProcessEvent(Event &event)
{
SelectHuman();
}
if (event.key.slot == INPUT_SLOT_NEXT && ((event.kmodState & KEY_MOD(CTRL)) != 0))
{
m_short->SelectShortcut(EVENT_OBJECT_SHORTCUT00); // switch bots <-> buildings
return false;
}
if (event.key.slot == INPUT_SLOT_NEXT)
{
if (m_shortCut)