summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-08-27 22:58:32 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-08-27 22:58:32 +0200
commit5c33043385cf540de90f54d07225517aff01df01 (patch)
treefaa95fbe8f57b16d5dcbd7771615ca7764250763 /src
parent72a29f9844a86050c5632861f71855713878c0b5 (diff)
Removed tesla order fixing
Diffstat (limited to 'src')
-rw-r--r--src/engine/bitwise_engine.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/engine/bitwise_engine.rs b/src/engine/bitwise_engine.rs
index 102f3fb..873b6e5 100644
--- a/src/engine/bitwise_engine.rs
+++ b/src/engine/bitwise_engine.rs
@@ -197,7 +197,11 @@ impl BitwiseGameState {
}
fn fire_single_players_teslas_without_cleanup(player: &mut Player, opponent: &mut Player) {
- player.tesla_cooldowns.sort_unstable_by(|a, b| b.age.cmp(&a.age));
+ // It's technically more accurate to have this in, but for
+ // most practical purposes it's a moot point and it's faster
+ // without it.
+ //
+ // player.tesla_cooldowns.sort_unstable_by(|a, b| b.age.cmp(&a.age));
for tesla in player.tesla_cooldowns.iter_mut() {
tesla.age += 1;
if tesla.cooldown > 0 {