From 5477e1795730c7540ecfed9be6bd7928f6d6f942 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 14 Jul 2021 18:02:12 +0100 Subject: [PATCH] regrab: Enable regrab (when not wresting) Signed-off-by: Ian Jackson --- templates/script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/script.ts b/templates/script.ts index fc4dcd0b..fe80192d 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -1101,7 +1101,7 @@ function drag_mousedown(e : MouseEvent, shifted: boolean) { add_log_message('That piece is pinned to the table.'); return; } - grab_clicked(clicked, false); + grab_clicked(clicked, !wresting); drag_start_prepare(DRAGGING.MAYBE_GRAB); } else { add_log_message('That piece is held by another player.'); -- 2.30.2