summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-13 21:16:51 +0200
committerGitHub <noreply@github.com>2020-04-13 21:16:51 +0200
commitc21529467adcdf98d369bb461e100b44333b0b81 (patch)
tree021a5b59ffa162eae3423be7c9f2ebe609e6552e /src
parentfixed record (diff)
downloadre3-c21529467adcdf98d369bb461e100b44333b0b81.tar
re3-c21529467adcdf98d369bb461e100b44333b0b81.tar.gz
re3-c21529467adcdf98d369bb461e100b44333b0b81.tar.bz2
re3-c21529467adcdf98d369bb461e100b44333b0b81.tar.lz
re3-c21529467adcdf98d369bb461e100b44333b0b81.tar.xz
re3-c21529467adcdf98d369bb461e100b44333b0b81.tar.zst
re3-c21529467adcdf98d369bb461e100b44333b0b81.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/Record.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/control/Record.cpp b/src/control/Record.cpp
index f41bead4..ca4128e3 100644
--- a/src/control/Record.cpp
+++ b/src/control/Record.cpp
@@ -21,8 +21,7 @@ tGameBuffer& CRecordDataForGame::pDataBufferForFrame = *(tGameBuffer*)0x72CED0;
void CRecordDataForGame::Init(void)
{
RecordingState = STATE_NONE;
- if (pDataBuffer)
- delete[] pDataBuffer;
+ delete[] pDataBuffer;
pDataBufferPointer = nil;
pDataBuffer = nil;
#ifndef GTA_PS2 // this stuff is not present on PS2
@@ -102,7 +101,7 @@ uint8* CRecordDataForGame::PackCurrentPadValues(uint8* buf, CControllerState* os
{
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftStickX, 0);
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftStickY, 1);
- PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftShoulder1, 2);
+ PROCESS_BUTTON_STATE_STORE(buf, os, ns, RightStickX, 2);
PROCESS_BUTTON_STATE_STORE(buf, os, ns, RightStickY, 3);
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftShoulder1, 4);
PROCESS_BUTTON_STATE_STORE(buf, os, ns, LeftShoulder2, 5);
@@ -132,7 +131,7 @@ uint8* CRecordDataForGame::UnPackCurrentPadValues(uint8* buf, uint8 total, CCont
switch (*buf++) {
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftStickX, 0);
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftStickY, 1);
- PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftShoulder1, 2);
+ PROCESS_BUTTON_STATE_RESTORE(buf, state, RightStickX, 2);
PROCESS_BUTTON_STATE_RESTORE(buf, state, RightStickY, 3);
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftShoulder1, 4);
PROCESS_BUTTON_STATE_RESTORE(buf, state, LeftShoulder2, 5);