src/main_gui.cpp
changeset 8139 16ad832aa538
parent 8017 8c46e61c510f
child 8153 32f871f7e7f7
--- a/src/main_gui.cpp	Wed Sep 26 17:33:32 2007 +0000
+++ b/src/main_gui.cpp	Wed Sep 26 19:27:29 2007 +0000
@@ -59,6 +59,8 @@
 extern void GenerateIndustries();
 extern bool GenerateTowns();
 
+bool _draw_bounding_boxes = false;
+
 
 void CcGiveMoney(bool success, TileIndex tile, uint32 p1, uint32 p2)
 {
@@ -2208,6 +2210,13 @@
 			break;
 		}
 
+		if (e->we.keypress.keycode == ('B' | WKC_CTRL)) {
+			e->we.keypress.cont = false;
+			_draw_bounding_boxes = !_draw_bounding_boxes;
+			MarkWholeScreenDirty();
+			break;
+		}
+
 		if (_game_mode == GM_MENU) break;
 
 		switch (e->we.keypress.keycode) {