diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-20 00:56:32 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-20 00:56:32 +0200 |
| commit | f8d95d074c36ec35eee8def73b8d9f2b83c922cb (patch) | |
| tree | 0ab9faba2784a64eeb89688b292b831c50442a0e /server/bot/src/algos/simple.rs | |
| parent | 8961db68d063a2dda427e80601650e4674772685 (diff) | |
| download | hurrycurry-f8d95d074c36ec35eee8def73b8d9f2b83c922cb.tar hurrycurry-f8d95d074c36ec35eee8def73b8d9f2b83c922cb.tar.bz2 hurrycurry-f8d95d074c36ec35eee8def73b8d9f2b83c922cb.tar.zst | |
Pathfinding avoids chairs
Diffstat (limited to 'server/bot/src/algos/simple.rs')
| -rw-r--r-- | server/bot/src/algos/simple.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bot/src/algos/simple.rs b/server/bot/src/algos/simple.rs index 0145cfcb..9c17cd82 100644 --- a/server/bot/src/algos/simple.rs +++ b/server/bot/src/algos/simple.rs @@ -243,7 +243,7 @@ impl<S: State> Context<'_, S> { } } pub fn interact_with(&mut self, tile: IVec2, duration: f32) -> LogicRes { - if let Some(path) = find_path_to_neighbour(&self.game.walkable, self.own_position, tile) { + if let Some(path) = find_path_to_neighbour(self.game, self.own_position, tile) { self.state.queue_segment(path, tile, duration); Err(()) } else { |