mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-22 06:43:21 +08:00
Add files via upload
This commit is contained in:
parent
59037b66ec
commit
8d0914dc28
@ -174,6 +174,11 @@ void ClientSession::Update(int time_advance_millisecs, double time_advance) {
|
||||
if (shutting_down_) {
|
||||
return;
|
||||
}
|
||||
if (auto* appmode = SceneV1AppMode::GetActiveOrThrow()) {
|
||||
if (appmode->is_replay_paused()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Allow replays to modulate speed, etc.
|
||||
// Also plug in our more exact time-advance here instead of the old int one.
|
||||
@ -1134,4 +1139,4 @@ void ClientSession::DumpFullState(SessionStream* out) {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace ballistica::scene_v1
|
||||
} // namespace ballistica::scene_v1
|
||||
@ -36,7 +36,7 @@ ClientSessionReplay::~ClientSessionReplay() {
|
||||
|
||||
// we no longer are responsible for feeding clients to this device..
|
||||
appmode->connections()->UnregisterClientController(this);
|
||||
|
||||
appmode->ResumeReplay();
|
||||
if (file_) {
|
||||
fclose(file_);
|
||||
file_ = nullptr;
|
||||
@ -262,4 +262,4 @@ void ClientSessionReplay::OnReset(bool rewind) {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace ballistica::scene_v1
|
||||
} // namespace ballistica::scene_v1
|
||||
Loading…
x
Reference in New Issue
Block a user