summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
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();