summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/macro.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/macro.cc')
-rw-r--r--crawl-ref/source/macro.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/crawl-ref/source/macro.cc b/crawl-ref/source/macro.cc
index fe200e45a4..b53d210f9a 100644
--- a/crawl-ref/source/macro.cc
+++ b/crawl-ref/source/macro.cc
@@ -1106,6 +1106,17 @@ command_type key_to_command(int key, KeymapContext context)
key_to_cmd_map &key_map = _keys_to_cmds[context];
key_to_cmd_map::iterator it = key_map.find(key);
+#if 0
+#ifdef USE_TILE
+ if (context != KMC_TILE && it == key_map.end())
+ {
+ context = KMC_TILE;
+ key_map = _keys_to_cmds[KMC_TILE];
+ it = key_map.find(key);
+ }
+#endif
+#endif
+
if (it == key_map.end())
return CMD_NO_CMD;
@@ -1134,11 +1145,12 @@ int command_to_key(command_type cmd)
KeymapContext context_for_command(command_type cmd)
{
+#if 0
#ifdef USE_TILE
if (cmd >= CMD_MIN_TILE && cmd <= CMD_MAX_TILE)
return KMC_TILE;
#endif
-
+#endif
if (cmd > CMD_NO_CMD && cmd <= CMD_MAX_NORMAL)
return KMC_DEFAULT;