diff --git a/src/entities/shared_systems/pathfinding.rs b/src/entities/shared_systems/pathfinding.rs index b657751..6e7e19a 100644 --- a/src/entities/shared_systems/pathfinding.rs +++ b/src/entities/shared_systems/pathfinding.rs @@ -585,13 +585,7 @@ pub fn calculate_provisional_path( LOCAL_FAILED_PATHS.with(|f| { *f.borrow_mut() += 1; }); - return Vec::new(); - } - if !is_standable_tile(tilemap, goal) { - LOCAL_FAILED_PATHS.with(|f| { - *f.borrow_mut() += 1; - }); - return Vec::new(); + return vec![Vec3::new(start.x as f32, start.y as f32, start.z as f32)]; } let estimated_tiles = octile_distance_3d(start, goal) / ITILE_SIZE;