From 42321984a86ba0f5b5c85f716e7e464776292754 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 13 Mar 2021 20:51:39 +0000 Subject: [PATCH] at-otter hidde: Use api_piece_move_synch in one place Signed-off-by: Ian Jackson --- apitest/at-otter.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index ec4f467e..17dfa16a 100644 --- a/apitest/at-otter.rs +++ b/apitest/at-otter.rs @@ -505,9 +505,8 @@ impl Ctx { bob.synch()?; for (&pawn, &xoffset) in izip!(&a_pawns, [10,20].iter()) { - alice.api_with_piece_op(&a_pieces[pawn].id, "m", json![ - (a_pieces[hand].pos + PosC([xoffset, 0]))?.0 - ])?; + let pos = (a_pieces[hand].pos + PosC([xoffset, 0]))?; + alice.api_piece_move_synch(&mut a_pieces, pawn, pos)?; } alice.synchu(&mut a_pieces)?; -- 2.30.2