Merge branch 'synis/fix-underwater-campfires' into 'master'

Synis/fix underwater campfires

See merge request veloren/veloren!1783
This commit is contained in:
Joshua Barretto 2021-02-16 14:59:04 +00:00
commit 82fe46ddb6
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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 {