summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-04-11 20:03:05 +0000
committerpeter1138 <peter1138@openttd.org>2007-04-11 20:03:05 +0000
commit9e967ed6bfc414517eb169d34a1bb815f609a457 (patch)
tree77587305799a646e768961818ffd526e756449eb /src
parente161e60af65e723710d1c04a4fbaaa45ea78373e (diff)
downloadopenttd-9e967ed6bfc414517eb169d34a1bb815f609a457.tar.xz
(svn r9595) -Fix (r9563): Transparency hotkeys didn't work
Diffstat (limited to 'src')
-rw-r--r--src/main_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index eb039bb95..a2af5eb22 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -2341,7 +2341,7 @@ static void MainWindowWndProc(Window *w, WindowEvent *e)
case '6' | WKC_CTRL:
case '7' | WKC_CTRL:
/* Transparency toggle hot keys */
- TOGGLEBIT(_transparent_opt, e->we.keypress.key - '1');
+ TOGGLEBIT(_transparent_opt, e->we.keypress.keycode - ('1' | WKC_CTRL));
MarkWholeScreenDirty();
break;