From 4e0bdd3f093f345dcdf49e46a2bd7e8bfaf4dfff Mon Sep 17 00:00:00 2001 From: stale Date: Tue, 12 Jul 2022 23:34:58 -0300 Subject: rework old, dumb code --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 7a85e63..c884dbc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -228,10 +228,10 @@ async fn gameloop(moves: MoveStreamHandles, players: Arc>, bco let done = |p: &Phase| { *p == Phase::Die || *p == Phase::Win }; match req { MetaMove::Move(m, o) => if !done(&game.phase) { - game = game.act(m); + game.act(m); desynced = true; if done(&game.phase) { - game.board = game.board.grade(); + game.board.grade(); final_player_name = players.read().await.get(&o).map(|p| p.name.clone()); } move_tx.send(MetaMove::StateSync).unwrap(); -- cgit v1.2.3