diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-07-08 13:23:18 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-07-08 13:23:18 +0200 |
commit | 8263d02a433c87fbfa246cdc80aa26a4dadb78f2 (patch) | |
tree | caeefc2106e9874dccd5a6a437c7b5542e6dd2d3 /src/input/json.rs | |
parent | 772d173dc2864e8fdaf98b9a549e2ed0f4be2099 (diff) |
Started moving constants to a constants file
Diffstat (limited to 'src/input/json.rs')
-rw-r--r-- | src/input/json.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input/json.rs b/src/input/json.rs index 6f0d5e8..c032f48 100644 --- a/src/input/json.rs +++ b/src/input/json.rs @@ -162,9 +162,9 @@ impl State { let building_type = building.convert_building_type(); let (mut engine_player, mut bitwise_buildings, bitfield) = if building.player_type == 'A' { - (&mut player, &mut player_buildings, point.to_left_bitfield(8)) + (&mut player, &mut player_buildings, point.to_left_bitfield()) } else { - (&mut opponent, &mut opponent_buildings, point.to_right_bitfield(8)) + (&mut opponent, &mut opponent_buildings, point.to_right_bitfield()) }; bitwise_buildings.occupied |= bitfield; @@ -205,7 +205,7 @@ impl State { } else { &mut opponent_buildings }; - let (mut left, mut right) = point.to_bitfield(8); + let (mut left, mut right) = point.to_bitfield(); for mut tier in bitwise_buildings.missiles.iter_mut() { let setting = (!tier.0 & left, !tier.1 & right); |