summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/enum.h
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-16 02:04:14 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-01-16 02:04:14 +0100
commite398d71d3e5f02d79806554df21de9e29fb627ef (patch)
treee29fbd10f1233c4a31624f51aa09bce6bc2afd49 /crawl-ref/source/enum.h
parent91c7e659794944626fd763ea3123d52ee9d2b836 (diff)
downloadcrawl-ref-e398d71d3e5f02d79806554df21de9e29fb627ef.tar.gz
crawl-ref-e398d71d3e5f02d79806554df21de9e29fb627ef.zip
Add pseudocommand CMD_NO_CMD_DEFAULT for overriding the vi keys.
CMD_NO_CMD is handled specially in many different ways, but the new command's sole purpose is to allow key bindings involving invalid commands, so as to override the vi keys for players who don't need them, don't want to replace them with other keys, but are worried about typos making their character walk into a fatal ambush.
Diffstat (limited to 'crawl-ref/source/enum.h')
-rw-r--r--crawl-ref/source/enum.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h
index 011a4615dc..30725b416e 100644
--- a/crawl-ref/source/enum.h
+++ b/crawl-ref/source/enum.h
@@ -439,6 +439,7 @@ enum cloud_type
enum command_type
{
CMD_NO_CMD = 1000,
+ CMD_NO_CMD_DEFAULT, // hack to allow assignment of keys to CMD_NO_CMD
CMD_MOVE_NOWHERE,
CMD_MOVE_LEFT,
CMD_MOVE_DOWN,