chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f95900
)
regrab: Enable regrab (when not wresting)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 14 Jul 2021 17:02:12 +0000
(18:02 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 14 Jul 2021 18:41:53 +0000
(19:41 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index fc4dcd0b10d985b1c622ec3fc0f064b51fa6db9c..fe80192d63174793be6da38fefa36014218e5bc0 100644
(file)
--- 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.');