Apply spectated player_id correctly
This commit is contained in:
parent
6c533b522d
commit
e9343f9f48
@ -351,8 +351,9 @@ impl Game {
|
|||||||
let mut playback = ReplayPlayback::new_alloc();
|
let mut playback = ReplayPlayback::new_alloc();
|
||||||
playback.bind_mut().replay = recorder.bind().replay.clone();
|
playback.bind_mut().replay = recorder.bind().replay.clone();
|
||||||
playback.bind_mut().current_map = self.current_map.clone();
|
playback.bind_mut().current_map = self.current_map.clone();
|
||||||
playback.bind_mut().current_time = recorder.bind().time_elapsed + time_delta;
|
playback.bind_mut().current_time = (recorder.bind().time_elapsed + time_delta).max(0.);
|
||||||
playback.bind_mut().fast_forwarding = true;
|
playback.bind_mut().fast_forwarding = true;
|
||||||
|
playback.bind_mut().spectated_player_id = spectated_id;
|
||||||
self.current_replay_playback = Some(playback.clone());
|
self.current_replay_playback = Some(playback.clone());
|
||||||
self.base_mut().add_child(&playback);
|
self.base_mut().add_child(&playback);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user