summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-06-22 21:23:26 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-06-22 21:23:26 +0200
commit4f9eff19b2edb682b91efe8d077fb12598178a20 (patch)
tree6b33a64c861d4b5de0fc792f03584558bd928e19 /src
parentfixed tab (diff)
downloadre3-4f9eff19b2edb682b91efe8d077fb12598178a20.tar
re3-4f9eff19b2edb682b91efe8d077fb12598178a20.tar.gz
re3-4f9eff19b2edb682b91efe8d077fb12598178a20.tar.bz2
re3-4f9eff19b2edb682b91efe8d077fb12598178a20.tar.lz
re3-4f9eff19b2edb682b91efe8d077fb12598178a20.tar.xz
re3-4f9eff19b2edb682b91efe8d077fb12598178a20.tar.zst
re3-4f9eff19b2edb682b91efe8d077fb12598178a20.zip
Diffstat (limited to 'src')
-rw-r--r--src/BulletTraces.cpp2
-rw-r--r--src/control/Replay.cpp12
2 files changed, 3 insertions, 11 deletions
diff --git a/src/BulletTraces.cpp b/src/BulletTraces.cpp
index 36b00c1c..a873875c 100644
--- a/src/BulletTraces.cpp
+++ b/src/BulletTraces.cpp
@@ -1,3 +1,3 @@
#include "BulletTraces.h"
-CBulletTrace (&CBulletTraces::aTraces)[16] = *(CBulletTrace(*)[16])0x72B1B8;
+CBulletTrace (&CBulletTraces::aTraces)[16] = *(CBulletTrace(*)[16])*(uintptr*)0x72B1B8;
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index beee5954..a8d87302 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -34,8 +34,8 @@ CReference *&CReplay::pEmptyReferences = *(CReference**)0x8F256C;
CStoredDetailedAnimationState *&CReplay::pPedAnims = *(CStoredDetailedAnimationState**)0x8F6260;
CPickup *&CReplay::pPickups = *(CPickup**)0x8F1A48;
CReference *&CReplay::pReferences = *(CReference**)0x880FAC;
-uint8(&CReplay::BufferStatus)[8] = *(uint8(*)[8])0x8804D8;
-uint8(&CReplay::Buffers)[8][100000] = *(uint8(*)[8][100000])0x779958;
+uint8(&CReplay::BufferStatus)[8] = *(uint8(*)[8])*(uintptr*)0x8804D8;
+uint8(&CReplay::Buffers)[8][100000] = *(uint8(*)[8][100000])*(uintptr*)0x779958;
bool &CReplay::bPlayingBackFromFile = *(bool*)0x95CD58;
bool &CReplay::bReplayEnabled = *(bool*)0x617CAC;
uint32 &CReplay::SlowMotion = *(uint32*)0x9414D4;
@@ -49,9 +49,6 @@ void PrintElementsInPtrList(void)
}
}
-#if 0
-WRAPPER void CReplay::Init(void) { EAXJMP(0x592FE0); }
-#else
void CReplay::Init(void)
{
pBuf0 = nil;
@@ -92,7 +89,6 @@ void CReplay::Init(void)
FramesActiveLookAroundCam = 0;
bDoLoadSceneWhenDone = false;
}
-#endif
void CReplay::DisableReplays(void)
{
@@ -104,9 +100,6 @@ void CReplay::EnableReplays(void)
bReplayEnabled = true;
}
-#if 0
-WRAPPER void CReplay::Update(void) { EAXJMP(0x593170); }
-#else
void PlayReplayFromHD(void);
void CReplay::Update(void)
{
@@ -135,7 +128,6 @@ void CReplay::Update(void)
PlayReplayFromHD();
}
}
-#endif
#if 0
WRAPPER void CReplay::RecordThisFrame(void) { EAXJMP(0x5932B0); }