diff options
author | truelight <truelight@openttd.org> | 2007-06-22 10:57:53 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-22 10:57:53 +0000 |
commit | 6159f58948763ed39a457e6ff825a735eea06b23 (patch) | |
tree | ae20bc955475b4b7263a0d0b7d3d32e3f75478fe /src/town_gui.cpp | |
parent | 38da76acb749aafbf0761bae9d29d9309ade8568 (diff) | |
download | openttd-6159f58948763ed39a457e6ff825a735eea06b23.tar.xz |
(svn r10265) -Feature: allow double-clicking on certain places: build-vehicle and town-action
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index bb46c0c17..185e17b8a 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -183,6 +183,10 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e) } break; + case WE_DOUBLE_CLICK: + e->we.click.widget = 6; + /* Fall through */ + case WE_CLICK: switch (e->we.click.widget) { case 3: { /* listbox */ |