summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-04 11:13:26 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-04 11:13:26 +0000
commitf6202329f81eba43835b3449f3d93d9a8de52d6f (patch)
tree4fd0ca1b27d137eb56f83bb14b69930e04a940eb /crawl-ref/source/libutil.cc
parent4b02802ef0c1026c560910095183505c367fb08c (diff)
downloadcrawl-ref-f6202329f81eba43835b3449f3d93d9a8de52d6f.tar.gz
crawl-ref-f6202329f81eba43835b3449f3d93d9a8de52d6f.zip
Allow */' to work in targeting (/+dir no longer selects a direction in Unix, I
can live with that). Upped monster MR slightly, weakened ensorcelled hibernation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1217 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.cc')
-rw-r--r--crawl-ref/source/libutil.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc
index c7e057a9e0..010602dfca 100644
--- a/crawl-ref/source/libutil.cc
+++ b/crawl-ref/source/libutil.cc
@@ -58,7 +58,7 @@ static keycode_type numpad2vi(keycode_type key)
}
#endif
-int unmangle_direction_keys(int keyin, int km)
+int unmangle_direction_keys(int keyin, int km, bool fake_ctrl, bool fake_shift)
{
const KeymapContext keymap = static_cast<KeymapContext>(km);
#ifdef UNIX
@@ -69,13 +69,13 @@ int unmangle_direction_keys(int keyin, int km)
// will hopefully be easy.
/* can we say yuck? -- haranp */
- if (keyin == '*')
+ if (fake_ctrl && keyin == '*')
{
keyin = getchm(keymap);
// return control-key
keyin = CONTROL(toupper(numpad2vi(keyin)));
}
- else if (keyin == '/')
+ else if (fake_shift && keyin == '/')
{
keyin = getchm(keymap);
// return shift-key