diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-07-21 18:46:09 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-07-21 18:46:09 +0200 |
commit | e8dc7d777a6a3fe40d2c4f3fee78ec49d14f5dec (patch) | |
tree | 294e0fd2e9feafd4d305a46f5ac2ffed128fdfa1 /src/engine/bitwise_engine.rs | |
parent | ac8d715c63331f7f4836828a207689473dd0ab40 (diff) |
Removed bitfield comment
I tried implementing it and it made things slower
Diffstat (limited to 'src/engine/bitwise_engine.rs')
-rw-r--r-- | src/engine/bitwise_engine.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/bitwise_engine.rs b/src/engine/bitwise_engine.rs index c7cadf1..9dfd449 100644 --- a/src/engine/bitwise_engine.rs +++ b/src/engine/bitwise_engine.rs @@ -322,7 +322,7 @@ impl BitwiseGameState { } fn fire_single_players_teslas_without_cleanup(player: &mut Player, player_buildings: &mut PlayerBuildings, opponent: &mut Player, opponent_buildings: &mut PlayerBuildings) { - player_buildings.tesla_cooldowns.sort_by(|a, b| b.age.cmp(&a.age)); + player_buildings.tesla_cooldowns.sort_unstable_by(|a, b| b.age.cmp(&a.age)); for tesla in player_buildings.tesla_cooldowns.iter_mut().filter(|t| t.active) { tesla.age += 1; if tesla.cooldown > 0 { |