From daa60184c6e52c82008ed375c7a2d4f7e65dfab0 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Thu, 12 Jul 2018 23:41:58 +0200 Subject: Changed other bitwise stuff to use constants --- src/engine/bitwise_engine.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/engine') diff --git a/src/engine/bitwise_engine.rs b/src/engine/bitwise_engine.rs index db4ad9a..87b7f0f 100644 --- a/src/engine/bitwise_engine.rs +++ b/src/engine/bitwise_engine.rs @@ -306,6 +306,7 @@ impl BitwiseGameState { for _ in 0..(if tesla.pos.y == 0 || tesla.pos.y == MAP_HEIGHT-1 { 2 } else { 3 }) { let hits = destroy_mask & opponent_buildings.buildings[0]; destroy_mask &= !hits; + //TODO: This can probably be pulled out of the loop BitwiseGameState::destroy_buildings(opponent_buildings, hits); destroy_mask = destroy_mask << SINGLE_MAP_WIDTH; } -- cgit v1.2.3