summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-24 13:27:22 +0000
committerrubidium <rubidium@openttd.org>2010-04-24 13:27:22 +0000
commite75e2648fc5a9c741629ef1efc8a097c655ed035 (patch)
tree37af684212bbdd39ab92860c5e0adb3e68f9fb87 /src/window.cpp
parentfef77ca53e2d3a381889aecc6739053f1582143b (diff)
downloadopenttd-e75e2648fc5a9c741629ef1efc8a097c655ed035.tar.xz
(svn r19706) -Add: support for the (NewGRF) debug box
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 78fbd1ac5..db8505ba1 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -346,6 +346,10 @@ static void DispatchLeftClickEvent(Window *w, int x, int y, int click_count)
nw->SetDirty(w);
return;
+ case WWT_DEBUGBOX:
+ w->ShowNewGRFInspectWindow();
+ break;
+
case WWT_SHADEBOX:
nw->SetDirty(w);
w->SetShaded(!w->IsShaded());