mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
45916d1794
`AgentData::jump_if` cancels `InputKind::Jump` if condition is not met. Even if the jump itself was issued elsewhere. This prevented merchants and travelers from reaching target site if somewhere along the path jump is required. This is exactly what happens during dispatch of `NpcActivity::Goto`. Original implementation contained `traverse` followed by `jump_if` for flying NPCs which cancelled pending `InputKind::Jump` issued by `traverse`. This fix extends jump condition inside traverse by including `traversal_config.can_fly`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |