fix R
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use strafesnet_common::instruction::TimedInstruction;
|
||||
use strafesnet_common::session::Time as SessionTime;
|
||||
use strafesnet_common::physics::Time as PhysicsTime;
|
||||
use strafesnet_roblox_bot_player::{bot::CompleteBot,graphics::Graphics,head::PlaybackHead};
|
||||
|
||||
pub enum SessionControlInstruction{
|
||||
@@ -54,9 +55,7 @@ impl<'a> PlayerWorker<'a>{
|
||||
self.playback_head.set_paused(ins.time,paused);
|
||||
},
|
||||
Instruction::SessionControl(SessionControlInstruction::Restart)=>{
|
||||
if let Some(bot)=&self.bot{
|
||||
self.playback_head.seek_to(ins.time,bot.time_base());
|
||||
}
|
||||
self.playback_head.seek_to(ins.time,PhysicsTime::ZERO);
|
||||
},
|
||||
Instruction::SessionControl(SessionControlInstruction::SkipForward)=>{
|
||||
self.playback_head.seek_forward(SessionTime::from_secs(2));
|
||||
|
||||
Reference in New Issue
Block a user