diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-07-01 23:58:52 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-07-01 23:58:52 +0200 |
commit | 8dd9517ae4b925fba5b825da04254412e039fa0c (patch) | |
tree | ac7547592e0f184a73330cbc513d3feb07c802db /src/input | |
parent | 99378ed484b04c710e0307db93ada65b29d93bae (diff) |
Continued filling in bitwise game engine
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/json.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |