mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Commented unused but potentially useful code
This commit is contained in:
parent
47e413c530
commit
ac30fcbd0e
@ -4,7 +4,6 @@ use crate::{
|
|||||||
vol::{BaseVol, ReadVol},
|
vol::{BaseVol, ReadVol},
|
||||||
};
|
};
|
||||||
use hashbrown::hash_map::DefaultHashBuilder;
|
use hashbrown::hash_map::DefaultHashBuilder;
|
||||||
use rand::{thread_rng, Rng};
|
|
||||||
use std::iter::FromIterator;
|
use std::iter::FromIterator;
|
||||||
use vek::*;
|
use vek::*;
|
||||||
|
|
||||||
@ -349,23 +348,23 @@ where
|
|||||||
Vec3::new(0, 0, -1), // Downwards
|
Vec3::new(0, 0, -1), // Downwards
|
||||||
];
|
];
|
||||||
|
|
||||||
let walkable = [
|
// let walkable = [
|
||||||
is_walkable(&(pos + Vec3::new(1, 0, 0))),
|
// is_walkable(&(pos + Vec3::new(1, 0, 0))),
|
||||||
is_walkable(&(pos + Vec3::new(-1, 0, 0))),
|
// is_walkable(&(pos + Vec3::new(-1, 0, 0))),
|
||||||
is_walkable(&(pos + Vec3::new(0, 1, 0))),
|
// is_walkable(&(pos + Vec3::new(0, 1, 0))),
|
||||||
is_walkable(&(pos + Vec3::new(0, -1, 0))),
|
// is_walkable(&(pos + Vec3::new(0, -1, 0))),
|
||||||
];
|
// ];
|
||||||
|
|
||||||
const DIAGONALS: [(Vec3<i32>, [usize; 2]); 8] = [
|
// const DIAGONALS: [(Vec3<i32>, [usize; 2]); 8] = [
|
||||||
(Vec3::new(1, 1, 0), [0, 2]),
|
// (Vec3::new(1, 1, 0), [0, 2]),
|
||||||
(Vec3::new(-1, 1, 0), [1, 2]),
|
// (Vec3::new(-1, 1, 0), [1, 2]),
|
||||||
(Vec3::new(1, -1, 0), [0, 3]),
|
// (Vec3::new(1, -1, 0), [0, 3]),
|
||||||
(Vec3::new(-1, -1, 0), [1, 3]),
|
// (Vec3::new(-1, -1, 0), [1, 3]),
|
||||||
(Vec3::new(1, 1, 1), [0, 2]),
|
// (Vec3::new(1, 1, 1), [0, 2]),
|
||||||
(Vec3::new(-1, 1, 1), [1, 2]),
|
// (Vec3::new(-1, 1, 1), [1, 2]),
|
||||||
(Vec3::new(1, -1, 1), [0, 3]),
|
// (Vec3::new(1, -1, 1), [0, 3]),
|
||||||
(Vec3::new(-1, -1, 1), [1, 3]),
|
// (Vec3::new(-1, -1, 1), [1, 3]),
|
||||||
];
|
// ];
|
||||||
|
|
||||||
DIRS.iter()
|
DIRS.iter()
|
||||||
.map(move |dir| (pos, dir))
|
.map(move |dir| (pos, dir))
|
||||||
|
Loading…
Reference in New Issue
Block a user