Add files via upload

This commit is contained in:
Vishal 2023-12-24 18:26:55 +05:30 committed by GitHub
parent 59037b66ec
commit 8d0914dc28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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