From 8dd9517ae4b925fba5b825da04254412e039fa0c Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sun, 1 Jul 2018 23:58:52 +0200 Subject: Continued filling in bitwise game engine --- src/input/json.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/input') diff --git a/src/input/json.rs b/src/input/json.rs index 13f0b5e..bebb5be 100644 --- a/src/input/json.rs +++ b/src/input/json.rs @@ -165,7 +165,8 @@ impl State { } else { (&mut opponent, &mut opponent_buildings, point.to_right_bitfield(8)) }; - + + bitwise_buildings.occupied |= bitfield; if building.construction_time_left >= 0 { bitwise_buildings.unconstructed.push(building.to_bitwise_engine_unconstructed()); } else { -- cgit v1.2.3