From c0db1310be0d66d53f71c958624b4bbd272538c2 Mon Sep 17 00:00:00 2001 From: Imbris Date: Wed, 19 Apr 2023 12:06:00 -0400 Subject: [PATCH] Fix bug --- world/src/civ/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/world/src/civ/mod.rs b/world/src/civ/mod.rs index 87108a487d..1166c365d9 100644 --- a/world/src/civ/mod.rs +++ b/world/src/civ/mod.rs @@ -1446,7 +1446,9 @@ fn loc_suitable_for_walking(sim: &WorldSim, loc: Vec2) -> bool { sim.get(loc + *n) .map_or(false, |chunk| chunk.river.near_water()) }) - .fold(false, |acc, near_water| acc & near_water) + .fold(false, |any_near_water, near_water| { + any_near_water | near_water + }) } else { false }