summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-07-01 23:58:52 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-07-01 23:58:52 +0200
commit8dd9517ae4b925fba5b825da04254412e039fa0c (patch)
treeac7547592e0f184a73330cbc513d3feb07c802db /src/input
parent99378ed484b04c710e0307db93ada65b29d93bae (diff)
Continued filling in bitwise game engine
Diffstat (limited to 'src/input')
-rw-r--r--src/input/json.rs3
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 {