diff options
Diffstat (limited to 'stockton-levels/src/q3/visdata.rs')
-rw-r--r-- | stockton-levels/src/q3/visdata.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stockton-levels/src/q3/visdata.rs b/stockton-levels/src/q3/visdata.rs index 39bfcf4..fd48415 100644 --- a/stockton-levels/src/q3/visdata.rs +++ b/stockton-levels/src/q3/visdata.rs @@ -22,6 +22,7 @@ use crate::types::{Result, ParseError}; use crate::traits::visdata::*; use crate::helpers::slice_to_i32; use super::file::Q3BSPFile; +use crate::coords::CoordSystem; /// Stores cluster-to-cluster visibility information. pub fn from_data(data: &[u8]) -> Result<Box<[BitBox<Local, u8>]>> { @@ -46,7 +47,7 @@ pub fn from_data(data: &[u8]) -> Result<Box<[BitBox<Local, u8>]>> { Ok(vecs.into_boxed_slice()) } -impl HasVisData for Q3BSPFile { +impl<T: CoordSystem> HasVisData for Q3BSPFile<T> { type VisibleIterator = IntoIter<ClusterId>; fn all_visible_from(&self, from: ClusterId) -> Self::VisibleIterator { |