diff --git a/src/bsp.rs b/src/bsp.rs index 8abe316..ae9ef2f 100644 --- a/src/bsp.rs +++ b/src/bsp.rs @@ -1,10 +1,10 @@ -use strafesnet_common::{model,integer,gameplay_attributes}; +use strafesnet_common::{map,model,integer,gameplay_attributes}; const VALVE_SCALE:f32=1.0/16.0; fn valve_transform(v:[f32;3])->integer::Planar64Vec3{ integer::Planar64Vec3::try_from([v[0]*VALVE_SCALE,v[2]*VALVE_SCALE,-v[1]*VALVE_SCALE]).unwrap() } -pub fn convert<F:FnMut(&str)->Option<model::TextureId>>(bsp:vbsp::Bsp,mut acquire_id:F)->model::CompleteMap{ +pub fn convert<F:FnMut(&str)->Option<model::TextureId>>(bsp:vbsp::Bsp,mut acquire_id:F)->map::CompleteMap{ let mut spawn_point=integer::Planar64Vec3::ZERO; let vertices: Vec<_> = bsp