Let flyers path over water and lava everywhere

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-05 14:46:16 +01:00
1 parent 574660e173
commit 1ef2239fbf
7 files changed
+85 -23

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ impl Game {
if d > 1.1 {
if e.path.is_empty() || e.repath <= 0.0 {
e.repath = 0.8;
if let Some(p) = self.map.path_to(e.tile(), idx(tx as i32, ty as i32)) {
if let Some(p) = self.map.creature_path(flies(e.kind), e.tile(), idx(tx as i32, ty as i32)) {
e.path = p;
}
}