diff options
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r-- | src/main_gui.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 447aef59b..95289a1bd 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp @@ -59,6 +59,8 @@ static int _scengen_town_size = 1; // depress medium-sized towns per default 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 @@ static void MainWindowWndProc(Window *w, WindowEvent *e) 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) { |