From 8263d02a433c87fbfa246cdc80aa26a4dadb78f2 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sun, 8 Jul 2018 13:23:18 +0200 Subject: Started moving constants to a constants file --- src/input/json.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/input/json.rs') 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); -- cgit v1.2.3