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:
23d05ab
)
before refactor report
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 3 Sep 2020 20:34:35 +0000
(21:34 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 3 Sep 2020 20:34:35 +0000
(21:34 +0100)
src/api.rs
patch
|
blob
|
history
diff --git
a/src/api.rs
b/src/api.rs
index 485a6c4a29baab17eb4990ebb5f2b80b257b285a..e3088e258e0ef6233fee1568180e01cd6566270d 100644
(file)
--- a/
src/api.rs
+++ b/
src/api.rs
@@
-249,7
+249,7
@@
impl ApiPieceOp for ApiPieceMove {
-> (PieceUpdateOp<()>, Vec<LogEntry>) {
let pc = gs.pieces.byid_mut(piece).unwrap();
let (pos, clamped) = self.0.clamped(gs.table_size);
- pc.pos =
self.0
;
+ pc.pos =
pos
;
if clamped {
Err(ApiPieceOpError::ReportViaUpdate(PieceOpError::PosOffTable))?;
}