mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Implemented Flight
This commit is contained in:
@ -94,7 +94,7 @@ impl Route {
|
||||
vol: &V,
|
||||
pos: Vec3<f32>,
|
||||
vel: Vec3<f32>,
|
||||
traversal_cfg: TraversalConfig,
|
||||
traversal_cfg: &TraversalConfig,
|
||||
) -> Option<(Vec3<f32>, f32)>
|
||||
where
|
||||
V: BaseVol<Vox = Block> + ReadVol,
|
||||
@ -364,7 +364,7 @@ impl Chaser {
|
||||
} else {
|
||||
self.route
|
||||
.as_mut()
|
||||
.and_then(|(r, _)| r.traverse(vol, pos, vel, traversal_cfg))
|
||||
.and_then(|(r, _)| r.traverse(vol, pos, vel, &traversal_cfg))
|
||||
}
|
||||
} else {
|
||||
None
|
||||
|
Reference in New Issue
Block a user