From 8b61a17009438c119008bcc848464461bf98d233 Mon Sep 17 00:00:00 2001 From: myk002 Date: Mon, 24 Oct 2022 12:46:31 -0700 Subject: [PATCH] prevent z-level from changing after box select if the player clicks the mouse too fast after finishing a selection --- docs/changelog.txt | 1 + plugins/automaterial.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index af2e6b3fa..79ba705b1 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -36,6 +36,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: ## New Plugins ## Fixes +- `automaterial`: fix the cursor jumping up a z level when clicking quickly after box select - `gui/create-item`: prevent materials list filter from intercepting sublist hotkeys - `tiletypes`: no longer resets dig priority to the default when updating other properties of a tile diff --git a/plugins/automaterial.cpp b/plugins/automaterial.cpp index b1b83d09e..a99d66cfc 100644 --- a/plugins/automaterial.cpp +++ b/plugins/automaterial.cpp @@ -94,7 +94,7 @@ static bool show_box_selection = true; static bool hollow_selection = false; static deque box_select_materials; -#define SELECTION_IGNORE_TICKS 10 +#define SELECTION_IGNORE_TICKS 1 static int ignore_selection = SELECTION_IGNORE_TICKS; static map last_used_material;