veloren/server/agent
Dmitry Kashitsyn 45916d1794
Fix accidental jump cancellation during dispatch of NpcActivity::Goto
`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`.
2024-04-02 22:16:12 +05:00
..
src Fix accidental jump cancellation during dispatch of NpcActivity::Goto 2024-04-02 22:16:12 +05:00
Cargo.toml Remove unused deps flagged by cargo-machete 2023-09-21 22:59:50 -04:00