Fix #1516 Add else branch to allow for agent idling when no sound events

This commit is contained in:
James Melkonian 2022-04-05 03:40:26 +00:00 committed by Samuel Keiffer
parent 50fd55daef
commit b590bc50d7
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -2315,6 +2315,8 @@ impl<'a> AgentData<'a> {
} else {
self.idle(agent, controller, read_data, rng);
}
} else {
self.idle(agent, controller, read_data, rng);
}
}