summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 04dbd3533..3e8a7d778 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -217,6 +217,7 @@ enum {
GHK_ABANDON,
GHK_CONSOLE,
GHK_BOUNDING_BOXES,
+ GHK_DIRTY_BLOCKS,
GHK_CENTER,
GHK_CENTER_ZOOM,
GHK_RESET_OBJECT_TO_PLACE,
@@ -301,6 +302,10 @@ struct MainWindow : Window
case GHK_BOUNDING_BOXES:
ToggleBoundingBoxes();
return ES_HANDLED;
+
+ case GHK_DIRTY_BLOCKS:
+ ToggleDirtyBlocks();
+ return ES_HANDLED;
}
if (_game_mode == GM_MENU) return ES_NOT_HANDLED;
@@ -455,6 +460,7 @@ Hotkey<MainWindow> MainWindow::global_hotkeys[] = {
Hotkey<MainWindow>(_ghk_abandon_keys, "abandon", GHK_ABANDON),
Hotkey<MainWindow>(WKC_BACKQUOTE, "console", GHK_CONSOLE),
Hotkey<MainWindow>('B' | WKC_CTRL, "bounding_boxes", GHK_BOUNDING_BOXES),
+ Hotkey<MainWindow>('I' | WKC_CTRL, "dirty_blocks", GHK_DIRTY_BLOCKS),
Hotkey<MainWindow>('C', "center", GHK_CENTER),
Hotkey<MainWindow>('Z', "center_zoom", GHK_CENTER_ZOOM),
Hotkey<MainWindow>(WKC_ESC, "reset_object_to_place", GHK_RESET_OBJECT_TO_PLACE),