From 3ce7746489579646bb83dbae2f1e80451d8628d9 Mon Sep 17 00:00:00 2001 From: Quaternions <krakow20@gmail.com> Date: Thu, 13 Mar 2025 16:21:41 -0700 Subject: [PATCH] snf: implement precise width conversion --- lib/snf/src/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/snf/src/map.rs b/lib/snf/src/map.rs index 1f476c088..94b92fe37 100644 --- a/lib/snf/src/map.rs +++ b/lib/snf/src/map.rs @@ -386,7 +386,7 @@ pub fn write_map<W:BinWriterExt>(mut writer:W,map:strafesnet_common::map::Comple let mesh=map.meshes.get(model.mesh.get() as usize).ok_or(Error::InvalidMeshId(model.mesh))?; let mut aabb=strafesnet_common::aabb::Aabb::default(); for &pos in &mesh.unique_pos{ - aabb.grow(model.transform.transform_point3(pos).fix_1()); + aabb.grow(model.transform.transform_point3(pos).narrow_1().unwrap()); } Ok(((model::ModelId::new(model_id as u32),model.into()),aabb)) }).collect::<Result<Vec<_>,_>>()?;