diff options
author | stale <redkugelblitzin@gmail.com> | 2022-07-12 23:34:58 -0300 |
---|---|---|
committer | stale <redkugelblitzin@gmail.com> | 2022-07-12 23:34:58 -0300 |
commit | 4e0bdd3f093f345dcdf49e46a2bd7e8bfaf4dfff (patch) | |
tree | c39b46bcc3370da4d6bdf20d7eed310b8f813aa5 /src/main.rs | |
parent | 02098f0d579259545584e246f64ed5e41be9537b (diff) |
rework old, dumb code
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<RwLock<PlayerMap>>, 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(); |