From: Ian Jackson Date: Wed, 14 Jul 2021 17:02:12 +0000 (+0100) Subject: regrab: Enable regrab (when not wresting) X-Git-Tag: otter-0.7.2~83 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5477e1795730c7540ecfed9be6bd7928f6d6f942;p=otter.git regrab: Enable regrab (when not wresting) Signed-off-by: Ian Jackson --- 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.');