diff options
| author | Matt Strapp <matt@mattstrapp.net> | 2025-11-04 14:05:04 -0600 |
|---|---|---|
| committer | Matt Strapp <matt@mattstrapp.net> | 2025-11-04 14:05:04 -0600 |
| commit | 97d58a2523efb739af8e6a49ca62c56e25e0d2d0 (patch) | |
| tree | 6320ae3c4d2d1dbdd8dacced275014eb8e767ed4 | |
| parent | Bump version (diff) | |
| download | wwb-97d58a2523efb739af8e6a49ca62c56e25e0d2d0.tar wwb-97d58a2523efb739af8e6a49ca62c56e25e0d2d0.tar.gz wwb-97d58a2523efb739af8e6a49ca62c56e25e0d2d0.tar.bz2 wwb-97d58a2523efb739af8e6a49ca62c56e25e0d2d0.tar.lz wwb-97d58a2523efb739af8e6a49ca62c56e25e0d2d0.tar.xz wwb-97d58a2523efb739af8e6a49ca62c56e25e0d2d0.tar.zst wwb-97d58a2523efb739af8e6a49ca62c56e25e0d2d0.zip | |
minor spelling mistake and miss save
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
| -rw-r--r-- | wwb/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wwb/src/main.rs b/wwb/src/main.rs index 952c80f..a7b1aa7 100644 --- a/wwb/src/main.rs +++ b/wwb/src/main.rs @@ -106,7 +106,7 @@ fn game_loop(game: &mut Game, path: &str, do_save: &AtomicBool) { loop { game.turn_count += 1; - // This will probably not work properly when the turn count goes above 2^32 on a 32-bit machine and 3^64 on a 64-bit machine. + // This will probably not work properly when the turn count goes above 2^32 on a 32-bit machine and 2^64 on a 64-bit machine. let current_player_number = game.turn_count as usize % PLAYER_COUNT; let mut current_space = game.players[current_player_number].current_space; @@ -140,6 +140,7 @@ fn game_loop(game: &mut Game, path: &str, do_save: &AtomicBool) { number_to_pretty_string(game.turn_count) ); game.players[current_player_number].high_score = current_space; + save_game(game, path); } let mut collision = false; |
