mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Addressed review issues
This commit is contained in:
@ -418,7 +418,7 @@ impl Chaser {
|
||||
});
|
||||
|
||||
if !walking_towards_edge {
|
||||
Some(((tgt - pos) * Vec3::new(1.0, 1.0, 0.0), 0.75))
|
||||
Some(((tgt - pos) * Vec3::new(1.0, 1.0, 0.0), 1.0))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
@ -458,7 +458,7 @@ where
|
||||
let is_walkable = |pos: &Vec3<i32>| walkable(vol, *pos);
|
||||
let get_walkable_z = |pos| {
|
||||
let mut z_incr = 0;
|
||||
for _ in 0..128 {
|
||||
for _ in 0..32 {
|
||||
let test_pos = pos + Vec3::unit_z() * z_incr;
|
||||
if is_walkable(&test_pos) {
|
||||
return Some(test_pos);
|
||||
|
Reference in New Issue
Block a user