add proper errors

This commit is contained in:
2026-03-18 10:25:35 -07:00
parent 20b86ee3c0
commit a3d8f5773e
8 changed files with 59 additions and 26 deletions

View File

@@ -99,10 +99,10 @@ impl<'a> PlayerWorker<'a>{
self.graphics_thread.resize(device,size,fov);
},
Instruction::ChangeMap(complete_map)=>{
self.graphics_thread.change_map(device,queue,&complete_map);
self.graphics_thread.change_map(device,queue,&complete_map).unwrap();
},
Instruction::LoadReplay(bot)=>{
let bot=CompleteBot::new(bot);
let bot=CompleteBot::new(bot).unwrap();
let playback_head=PlaybackHead::new(&bot,SessionTime::ZERO);
self.playback=Some(Playback{
bot,