summaryrefslogtreecommitdiffstats
path: root/src/control/Replay.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-03-22 14:41:03 +0100
committerGitHub <noreply@github.com>2020-03-22 14:41:03 +0100
commitf9342c7e8341130d3783316584acaff91fe96660 (patch)
tree16ce4d0b84913ca71c47dcb65b48590f7c6ed633 /src/control/Replay.cpp
parentfixed vehicle rendering bug (diff)
parentbullet traces fixes (diff)
downloadre3-f9342c7e8341130d3783316584acaff91fe96660.tar
re3-f9342c7e8341130d3783316584acaff91fe96660.tar.gz
re3-f9342c7e8341130d3783316584acaff91fe96660.tar.bz2
re3-f9342c7e8341130d3783316584acaff91fe96660.tar.lz
re3-f9342c7e8341130d3783316584acaff91fe96660.tar.xz
re3-f9342c7e8341130d3783316584acaff91fe96660.tar.zst
re3-f9342c7e8341130d3783316584acaff91fe96660.zip
Diffstat (limited to 'src/control/Replay.cpp')
-rw-r--r--src/control/Replay.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index 2b7c6b62..a68dd5e7 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -280,7 +280,7 @@ void CReplay::RecordThisFrame(void)
}
memory_required += sizeof(tPedUpdatePacket);
}
- for (uint8 i = 0; i < 16; i++) {
+ for (uint8 i = 0; i < NUMBULLETTRACES; i++) {
if (!CBulletTraces::aTraces[i].m_bInUse)
continue;
memory_required += sizeof(tBulletTracePacket);
@@ -340,7 +340,7 @@ void CReplay::RecordThisFrame(void)
}
StorePedUpdate(p, i);
}
- for (uint8 i = 0; i < 16; i++){
+ for (uint8 i = 0; i < NUMBULLETTRACES; i++){
if (!CBulletTraces::aTraces[i].m_bInUse)
continue;
tBulletTracePacket* bt = (tBulletTracePacket*)&Record.m_pBase[Record.m_nOffset];
@@ -348,8 +348,8 @@ void CReplay::RecordThisFrame(void)
bt->index = i;
bt->frames = CBulletTraces::aTraces[i].m_framesInUse;
bt->lifetime = CBulletTraces::aTraces[i].m_lifeTime;
- bt->inf = CBulletTraces::aTraces[i].m_vecInf;
- bt->sup = CBulletTraces::aTraces[i].m_vecSup;
+ bt->inf = CBulletTraces::aTraces[i].m_vecCurrentPos;
+ bt->sup = CBulletTraces::aTraces[i].m_vecTargetPos;
Record.m_nOffset += sizeof(*bt);
}
tEndOfFramePacket* eof = (tEndOfFramePacket*)&Record.m_pBase[Record.m_nOffset];
@@ -995,8 +995,8 @@ bool CReplay::PlayBackThisFrameInterpolation(CAddressInReplayBuffer *buffer, flo
CBulletTraces::aTraces[pb->index].m_bInUse = true;
CBulletTraces::aTraces[pb->index].m_framesInUse = pb->frames;
CBulletTraces::aTraces[pb->index].m_lifeTime = pb->lifetime;
- CBulletTraces::aTraces[pb->index].m_vecInf = pb->inf;
- CBulletTraces::aTraces[pb->index].m_vecSup = pb->sup;
+ CBulletTraces::aTraces[pb->index].m_vecCurrentPos = pb->inf;
+ CBulletTraces::aTraces[pb->index].m_vecTargetPos = pb->sup;
buffer->m_nOffset += sizeof(tBulletTracePacket);
}
default: