diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-13 21:12:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 21:12:41 +0200 |
commit | 12d36d871016643aae518117efd78a4ffbd3a88c (patch) | |
tree | 2d3b2131f7b2e3a0c71111227056f6d95c6cc425 /src/control | |
parent | Merge pull request #412 from whampson/save-stuff (diff) | |
download | re3-12d36d871016643aae518117efd78a4ffbd3a88c.tar re3-12d36d871016643aae518117efd78a4ffbd3a88c.tar.gz re3-12d36d871016643aae518117efd78a4ffbd3a88c.tar.bz2 re3-12d36d871016643aae518117efd78a4ffbd3a88c.tar.lz re3-12d36d871016643aae518117efd78a4ffbd3a88c.tar.xz re3-12d36d871016643aae518117efd78a4ffbd3a88c.tar.zst re3-12d36d871016643aae518117efd78a4ffbd3a88c.zip |
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/Record.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Record.cpp b/src/control/Record.cpp index aead1720..f41bead4 100644 --- a/src/control/Record.cpp +++ b/src/control/Record.cpp @@ -42,7 +42,7 @@ void CRecordDataForGame::Init(void) if (RecordingState == STATE_PLAYBACK) { pDataBufferPointer = new uint8[MEMORY_FOR_GAME_RECORD]; pDataBuffer = pDataBufferPointer; - pDataBuffer[CFileMgr::Read(FId, (char*)pDataBufferPointer, MEMORY_FOR_GAME_RECORD) + 8] = -1; + pDataBuffer[CFileMgr::Read(FId, (char*)pDataBufferPointer, MEMORY_FOR_GAME_RECORD) + 8] = (uint8)-1; CFileMgr::CloseFile(FId); } #else @@ -71,7 +71,7 @@ void CRecordDataForGame::SaveOrRetrieveDataForThisFrame(void) break; } case STATE_PLAYBACK: - if (pDataBufferPointer[8] == -1) + if (pDataBufferPointer[8] == (uint8)-1) CPad::GetPad(0)->NewState.Clear(); else { tGameBuffer* pData = (tGameBuffer*)pDataBufferPointer; @@ -92,7 +92,7 @@ void CRecordDataForGame::SaveOrRetrieveDataForThisFrame(void) #define PROCESS_BUTTON_STATE_STORE(buf, os, ns, field, id) \ do { \ - if (os->field != os->field){ \ + if (os->field != ns->field){ \ *buf++ = id; \ *buf++ = ns->field; \ } \ |