Merge branch 'james/fix-agent-idle' into 'master'

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

Closes #1516

See merge request veloren/veloren!3319
This commit is contained in:
Samuel Keiffer 2022-04-05 03:40:26 +00:00
commit fc0ecdbc22
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);
}
}