diff --git a/src/map.rs b/src/map.rs index 9513daf..b758d98 100644 --- a/src/map.rs +++ b/src/map.rs @@ -144,7 +144,7 @@ struct ResourceExternalHeader{ struct MapHeader{ num_spacial_blocks:u32, num_resource_blocks:u32, - num_resources_external:u32, + //num_resources_external:u32, num_modes:u32, num_attributes:u32, num_render_configs:u32, @@ -152,8 +152,8 @@ struct MapHeader{ spacial_blocks:Vec, #[br(count=num_resource_blocks)] resource_blocks:Vec, - #[br(count=num_resources_external)] - external_resources:Vec, + //#[br(count=num_resources_external)] + //external_resources:Vec, #[br(count=num_modes)] modes:Vec, #[br(count=num_attributes)] @@ -389,13 +389,13 @@ pub fn write_map(mut writer:W,map:strafesnet_common::map::Comple let map_header=MapHeader{ num_spacial_blocks:spacial_blocks.len() as u32, num_resource_blocks:resource_blocks.len() as u32, - num_resources_external:0, + //num_resources_external:0, num_modes:map.modes.modes.len() as u32, num_attributes:map.attributes.len() as u32, num_render_configs:map.render_configs.len() as u32, spacial_blocks, resource_blocks, - external_resources:Vec::new(), + //external_resources:Vec::new(), modes:map.modes.modes.into_iter().map(Into::into).collect(), attributes:map.attributes.into_iter().map(Into::into).collect(), render_configs:map.render_configs.into_iter().map(Into::into).collect(),