fix err msg

This commit is contained in:
2025-01-18 00:31:23 -08:00
parent 79a22ae303
commit 2a7dbbe3e4

@ -32,7 +32,7 @@ impl WindowContext<'_>{
match crate::file::load(path.as_path()){
Ok(Format2::Map(map))=>self.physics_thread.send(TimedInstruction{time,instruction:PhysicsWorkerInstruction::ChangeMap(map)}).unwrap(),
Ok(Format2::Bot(bot))=>self.physics_thread.send(TimedInstruction{time,instruction:PhysicsWorkerInstruction::LoadReplay(bot)}).unwrap(),
Err(e)=>println!("Failed to load map: {e}"),
Err(e)=>println!("Failed to load file: {e}"),
}
},
winit::event::WindowEvent::Focused(state)=>{