don't make a new replay if you are spectating

This commit is contained in:
Quaternions 2025-01-18 01:39:03 -08:00
parent 25e1312fe4
commit 1eac734c35

View File

@ -251,7 +251,7 @@ impl InstructionConsumer<Instruction<'_>> for Session{
// what if they pause for 5ms lmao
_=self.simulation.timer.set_paused(ins.time,paused);
},
Instruction::Control(SessionControlInstruction::CopyRecordingIntoReplayAndSpectate)=>{
Instruction::Control(SessionControlInstruction::CopyRecordingIntoReplayAndSpectate)=> if let ViewState::Play=self.view_state{
// Bind: B
// pause simulation