[colobot] 294/390: Added bots/buildings switch shortcut (#391)
Didier Raboud
odyx at moszumanska.debian.org
Fri Jun 12 14:21:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch upstream/latest
in repository colobot.
commit 56d66b3417a1fc6ec3e85c7fc6f1ca317ce98d00
Author: krzys-h <krzys_h at interia.pl>
Date: Sun Mar 22 16:02:05 2015 +0100
Added bots/buildings switch shortcut (#391)
---
src/object/robotmain.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp
index d5927d0..f932e93 100644
--- a/src/object/robotmain.cpp
+++ b/src/object/robotmain.cpp
@@ -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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list