From a29ce3c4281b19bfc7f8ecfc40287cdbadbb45b5 Mon Sep 17 00:00:00 2001 From: Synis Date: Tue, 16 Feb 2021 13:23:12 +0100 Subject: [PATCH 1/2] Waypoints are no longer placed underwater --- world/src/sim/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/world/src/sim/mod.rs b/world/src/sim/mod.rs index b1e847b972..7d9d4c1590 100644 --- a/world/src/sim/mod.rs +++ b/world/src/sim/mod.rs @@ -1635,6 +1635,10 @@ impl WorldSim { .filter_map(|(i, j)| { let mut pos = Vec2::new(i as i32, j as i32); let mut chunk = this.get(pos)?; + + if chunk.is_underwater() { + return None; + } // Slide the waypoints down hills const MAX_ITERS: usize = 64; for _ in 0..MAX_ITERS { From 2e4cf7cc4e28752f8ab14a664432f146d3bac9b5 Mon Sep 17 00:00:00 2001 From: Synis Date: Tue, 16 Feb 2021 13:26:40 +0100 Subject: [PATCH 2/2] Added changelog entry --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0d87d7d85..34abb51a17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,7 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Glider can now be deployed mid-air at the cost of some stamina based on fall speed - Translations are now folders with multiple files instead of a huge single file - Default inventory slots reduced to 18 - existing characters given 3x 6-slot bags as compensation -- Protection rating was moved to the top left of the loadout view +- Protection rating was moved to the top left of the loadout view - Changed camera smoothing to be off by default. - Footstep SFX is now dependant on distance moved, not time since last play - Adjusted most NPCs hitboxes to better fit their models. @@ -62,6 +62,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Made zooming work on wayland - Fixed AI behavior so only humanoids will attempt to roll - Fixed a bug where the stairs to the boss floor in dungeons would sometimes not spawn +- Fixed waypoints being placed underwater ## [0.8.0] - 2020-11-28