summaryrefslogtreecommitdiff
path: root/src/json.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.rs')
-rw-r--r--src/json.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json.rs b/src/json.rs
index a8eb012..3a3fbf2 100644
--- a/src/json.rs
+++ b/src/json.rs
@@ -151,7 +151,7 @@ impl State {
self.game_map.iter()
.flat_map(|row| row.iter()
.flat_map(|cell| cell.buildings.iter()
- .filter(|b| b.player_type == player_type && b.construction_time_left > 0)
+ .filter(|b| b.player_type == player_type && b.construction_time_left >= 0)
.map(|b| b.to_engine_unconstructed())
)
)
@@ -162,7 +162,7 @@ impl State {
self.game_map.iter()
.flat_map(|row| row.iter()
.flat_map(|cell| cell.buildings.iter()
- .filter(|b| b.player_type == player_type && b.construction_time_left <= 0)
+ .filter(|b| b.player_type == player_type && b.construction_time_left < 0)
.map(|b| b.to_engine())
)
)