summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorstale <redkugelblitzin@gmail.com>2022-07-12 23:34:58 -0300
committerstale <redkugelblitzin@gmail.com>2022-07-12 23:34:58 -0300
commit4e0bdd3f093f345dcdf49e46a2bd7e8bfaf4dfff (patch)
treec39b46bcc3370da4d6bdf20d7eed310b8f813aa5 /src/main.rs
parent02098f0d579259545584e246f64ed5e41be9537b (diff)
rework old, dumb code
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();