From b590bc50d73185a534a49886fc9ada3226882986 Mon Sep 17 00:00:00 2001 From: James Melkonian Date: Tue, 5 Apr 2022 03:40:26 +0000 Subject: [PATCH] Fix #1516 Add else branch to allow for agent idling when no sound events --- CHANGELOG.md | 1 + server/src/sys/agent.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5f75b66f1..4c06b4545e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Sites will now also be placed near the edge of the map - Fix a bug causing NPCs to jitter on interaction and randomly run away. - Harvester boss arenas should be more accessible and easier to exit +- Fix agents not idling ## [0.12.0] - 2022-02-19 diff --git a/server/src/sys/agent.rs b/server/src/sys/agent.rs index 3758840a38..764a313e0c 100644 --- a/server/src/sys/agent.rs +++ b/server/src/sys/agent.rs @@ -2315,6 +2315,8 @@ impl<'a> AgentData<'a> { } else { self.idle(agent, controller, read_data, rng); } + } else { + self.idle(agent, controller, read_data, rng); } }