summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2011-07-20 16:19:48 +0000
committerplanetmaker <planetmaker@openttd.org>2011-07-20 16:19:48 +0000
commit3045c3fd2a84290abfc8c1510cd0a24aa7ce38b0 (patch)
treefaed26decb8171d7e54e213f3e3c3f36ffe653b2 /src/main_gui.cpp
parenta70c37e4c9b80872b9fca1fb5707743854198ecf (diff)
downloadopenttd-3045c3fd2a84290abfc8c1510cd0a24aa7ce38b0.tar.xz
(svn r22675) -Change: Add a menu entry for the sprite bounding box debuging feature in the help menu and enable bounding boxes only in conjunction with the newgrf developer tools
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 7b4b55526..e7a593c8f 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -301,9 +301,7 @@ struct MainWindow : Window
return ES_HANDLED;
case GHK_BOUNDING_BOXES:
- extern bool _draw_bounding_boxes;
- _draw_bounding_boxes = !_draw_bounding_boxes;
- MarkWholeScreenDirty();
+ ToggleBoundingBoxes();
return ES_HANDLED;
}