aboutsummaryrefslogtreecommitdiff
path: root/planetwars-rules/src/serializer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'planetwars-rules/src/serializer.rs')
-rw-r--r--planetwars-rules/src/serializer.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/planetwars-rules/src/serializer.rs b/planetwars-rules/src/serializer.rs
index 380433e..7eb2e01 100644
--- a/planetwars-rules/src/serializer.rs
+++ b/planetwars-rules/src/serializer.rs
@@ -47,8 +47,7 @@ impl<'a> Serializer<'a> {
/// rotated based on the number offset for this serializer.
fn player_num(&self, player_id: usize) -> usize {
let num_players = self.state.players.len();
- let rotated_id =
- (player_id + num_players - self.player_num_offset) % num_players;
+ let rotated_id = (player_id + num_players - self.player_num_offset) % num_players;
// protocol player ids start at 1
return rotated_id + 1;
}