lol idk #1

Open
Quaternions wants to merge 826 commits from StrafesNET/strafe-project:master into master
Showing only changes of commit 5d25400942 - Show all commits

View File

@ -266,9 +266,10 @@ impl<R:BinReaderExt> StreamableMap<R>{
read_texture(&mut self.file,block_id)
}
pub fn into_complete_map(mut self)->Result<strafesnet_common::map::CompleteMap,Error>{
//count on reading the file in sequential order being fastest
let mut block_ids=std::collections::BinaryHeap::new();
let mut block_ids=Vec::new();
self.bvh.into_visitor(&mut |block_id|block_ids.push(block_id));
//count on reading the file in sequential order being fastest
block_ids.sort_unstable();
//load all regions
let mut model_pairs=HashMap::new();
for block_id in block_ids{