From 3045c3fd2a84290abfc8c1510cd0a24aa7ce38b0 Mon Sep 17 00:00:00 2001 From: planetmaker Date: Wed, 20 Jul 2011 16:19:48 +0000 Subject: (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 --- src/main_gui.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main_gui.cpp') 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; } -- cgit v1.2.3-54-g00ecf