summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-10-15 14:42:10 +0200
committerRoman Masanin <36927roma@gmail.com>2020-10-15 14:42:10 +0200
commit34b4efe242bc6304f2e340dfe32273062e0ed73e (patch)
tree006f2aad743eb706ebea0d80e5acd6d4ff08d1ea /src/control
parentMerge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff)
downloadre3-34b4efe242bc6304f2e340dfe32273062e0ed73e.tar
re3-34b4efe242bc6304f2e340dfe32273062e0ed73e.tar.gz
re3-34b4efe242bc6304f2e340dfe32273062e0ed73e.tar.bz2
re3-34b4efe242bc6304f2e340dfe32273062e0ed73e.tar.lz
re3-34b4efe242bc6304f2e340dfe32273062e0ed73e.tar.xz
re3-34b4efe242bc6304f2e340dfe32273062e0ed73e.tar.zst
re3-34b4efe242bc6304f2e340dfe32273062e0ed73e.zip
Diffstat (limited to '')
-rw-r--r--src/control/Replay.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index 034cfe4d..ad2aad7e 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -394,10 +394,8 @@ void CReplay::RecordThisFrame(void)
tBulletTracePacket* bt = (tBulletTracePacket*)&Record.m_pBase[Record.m_nOffset];
bt->type = REPLAYPACKET_BULLET_TRACES;
bt->index = i;
-// bt->frames = CBulletTraces::aTraces[i].m_framesInUse;
-// bt->lifetime = CBulletTraces::aTraces[i].m_lifeTime;
- bt->inf = CBulletTraces::aTraces[i].m_vecCurrentPos;
- bt->sup = CBulletTraces::aTraces[i].m_vecTargetPos;
+ bt->inf = CBulletTraces::aTraces[i].m_vecStartPos;
+ bt->sup = CBulletTraces::aTraces[i].m_vecEndPos;
Record.m_nOffset += sizeof(*bt);
}
tMiscPacket* misc = (tMiscPacket*)&Record.m_pBase[Record.m_nOffset];
@@ -1141,10 +1139,8 @@ bool CReplay::PlayBackThisFrameInterpolation(CAddressInReplayBuffer *buffer, flo
{
tBulletTracePacket* pb = (tBulletTracePacket*)&ptr[offset];
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_vecCurrentPos = pb->inf;
- CBulletTraces::aTraces[pb->index].m_vecTargetPos = pb->sup;
+ CBulletTraces::aTraces[pb->index].m_vecStartPos = pb->inf;
+ CBulletTraces::aTraces[pb->index].m_vecEndPos = pb->sup;
buffer->m_nOffset += sizeof(tBulletTracePacket);
break;
}