diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-07-12 23:41:58 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-07-12 23:41:58 +0200 |
commit | daa60184c6e52c82008ed375c7a2d4f7e65dfab0 (patch) | |
tree | 7df7ea8fd94448726603617034599c61f245fb84 /src/engine | |
parent | 03f574e28c2c535a2365b3621bf08e808e75c23b (diff) |
Changed other bitwise stuff to use constants
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/bitwise_engine.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |