summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-27 06:42:13 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-27 06:42:13 +0000
commitbe2310a6dbaa049e6f770f12b85f89f19a0ce9fa (patch)
tree3b98441afa696592ff2ad4835b2bb4fad0984a2e
parent4bbb84c8d94b9158989b8652a4423e5f4f6881fd (diff)
downloadcrawl-ref-be2310a6dbaa049e6f770f12b85f89f19a0ce9fa.tar.gz
crawl-ref-be2310a6dbaa049e6f770f12b85f89f19a0ce9fa.zip
Fixed shift-running for Windows and DOS.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@152 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/acr.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index eaf8ffacb6..d8e3bce25a 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -2503,6 +2503,8 @@ command_type keycode_to_command( keycode_type key ) {
case '\'': return CMD_WEAPON_SWAP;
case '0': return CMD_NO_CMD;
+
+#ifdef UNIX
case '1': return CMD_MOVE_DOWN_LEFT;
case '2': return CMD_MOVE_DOWN;
case '3': return CMD_MOVE_DOWN_RIGHT;
@@ -2512,6 +2514,17 @@ command_type keycode_to_command( keycode_type key ) {
case '7': return CMD_MOVE_UP_LEFT;
case '8': return CMD_MOVE_UP;
case '9': return CMD_MOVE_UP_RIGHT;
+#else
+ case '1': return CMD_RUN_DOWN_LEFT;
+ case '2': return CMD_RUN_DOWN;
+ case '3': return CMD_RUN_DOWN_RIGHT;
+ case '4': return CMD_RUN_LEFT;
+ case '5': return CMD_REST;
+ case '6': return CMD_RUN_RIGHT;
+ case '7': return CMD_RUN_UP_LEFT;
+ case '8': return CMD_RUN_UP;
+ case '9': return CMD_RUN_UP_RIGHT;
+#endif
case CONTROL('B'): return CMD_OPEN_DOOR_DOWN_LEFT;
case CONTROL('H'): return CMD_OPEN_DOOR_LEFT;