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:
dff2f6a
)
allow wresting of held pieces
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 14 Oct 2020 00:00:17 +0000
(
01:00
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 14 Oct 2020 00:00:17 +0000
(
01:00
+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 e4ada29521372ea1942feb374f19b7a838336bdf..0dd6f78d48d1f1f271dbdcae35fbcb1b50cf6a3a 100644
(file)
--- a/
templates/script.ts
+++ b/
templates/script.ts
@@
-613,7
+613,7
@@
function drag_mousedown(e : MouseEvent, shifted: boolean) {
if (tp.held != us) continue;
drag_add_piece(tpiece,tp);
}
- } else if (held == null) {
+ } else if (held == null
|| wresting
) {
if (p.pinned && !wresting) {
add_log_message('That piece is pinned to the table.');
return;