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:
3934021
)
js: Fix a missing bit of pieceops.Insert
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 4 Apr 2021 01:39:15 +0000
(
02:39
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 4 Apr 2021 01:43:38 +0000
(
02:43
+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 ca348f8f9d961bee232b9f7b7023af4f040c9968..7d40d71212be9fc7b38fe03009f6b20760c7443d 100644
(file)
--- a/
templates/script.ts
+++ b/
templates/script.ts
@@
-1246,6
+1246,7
@@
pieceops.Insert = <PieceHandler>function
} as any as PieceInfo; // fudge this, piece_modify_core will fix it
pieces[piece] = p;
p.uos = info.uos;
+ p.queued_moves = 0;
piece_modify_core(piece, p, info, false);
}