summaryrefslogtreecommitdiffstats
path: root/src/control/Replay.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-01-13 00:28:51 +0100
committerwithmorten <morten.with@gmail.com>2021-01-13 00:28:51 +0100
commite122a75dd283b79fe5f5da742a8e11eab8730ec3 (patch)
tree27492272029cd7847dae55daebefc2340638419d /src/control/Replay.cpp
parentmove stuff back into class; securom comments (diff)
downloadre3-e122a75dd283b79fe5f5da742a8e11eab8730ec3.tar
re3-e122a75dd283b79fe5f5da742a8e11eab8730ec3.tar.gz
re3-e122a75dd283b79fe5f5da742a8e11eab8730ec3.tar.bz2
re3-e122a75dd283b79fe5f5da742a8e11eab8730ec3.tar.lz
re3-e122a75dd283b79fe5f5da742a8e11eab8730ec3.tar.xz
re3-e122a75dd283b79fe5f5da742a8e11eab8730ec3.tar.zst
re3-e122a75dd283b79fe5f5da742a8e11eab8730ec3.zip
Diffstat (limited to '')
-rw-r--r--src/control/Replay.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index db768e17..e7e0ea8c 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -1748,17 +1748,17 @@ void CReplay::PlayReplayFromHD(void)
return;
}
int slot;
- for (slot = 0; CFileMgr::Read(fr, (char*)CReplay::Buffers[slot], sizeof(CReplay::Buffers[slot])); slot++)
- CReplay::BufferStatus[slot] = CReplay::REPLAYBUFFER_PLAYBACK;
- CReplay::BufferStatus[slot - 1] = CReplay::REPLAYBUFFER_RECORD;
- while (slot < CReplay::NUM_REPLAYBUFFERS)
- CReplay::BufferStatus[slot++] = CReplay::REPLAYBUFFER_UNUSED;
+ for (slot = 0; CFileMgr::Read(fr, (char*)Buffers[slot], sizeof(Buffers[slot])); slot++)
+ BufferStatus[slot] = REPLAYBUFFER_PLAYBACK;
+ BufferStatus[slot - 1] = REPLAYBUFFER_RECORD;
+ while (slot < NUM_REPLAYBUFFERS)
+ BufferStatus[slot++] = REPLAYBUFFER_UNUSED;
CFileMgr::CloseFile(fr);
CFileMgr::SetDir("");
- CReplay::TriggerPlayback(CReplay::REPLAYCAMMODE_ASSTORED, 0.0f, 0.0f, 0.0f, false);
- CReplay::bPlayingBackFromFile = true;
- CReplay::bAllowLookAroundCam = true;
- CReplay::StreamAllNecessaryCarsAndPeds();
+ TriggerPlayback(REPLAYCAMMODE_ASSTORED, 0.0f, 0.0f, 0.0f, false);
+ bPlayingBackFromFile = true;
+ bAllowLookAroundCam = true;
+ StreamAllNecessaryCarsAndPeds();
}
void CReplay::StreamAllNecessaryCarsAndPeds(void)