summaryrefslogtreecommitdiffstats
path: root/src/save
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-08 21:45:37 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-08 21:45:37 +0200
commit570ccb7db1c94bf9adf62a8809dfa648139a3915 (patch)
tree8dadceb031c51a2cffc6fccd7600c95a16fd45e1 /src/save
parentupdate librw (diff)
parentMerge pull request #756 from erorcun/miami (diff)
downloadre3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar
re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.gz
re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.bz2
re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.lz
re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.xz
re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.tar.zst
re3-570ccb7db1c94bf9adf62a8809dfa648139a3915.zip
Diffstat (limited to 'src/save')
-rw-r--r--src/save/GenericGameStorage.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp
index b38f1bd9..b98b8243 100644
--- a/src/save/GenericGameStorage.cpp
+++ b/src/save/GenericGameStorage.cpp
@@ -213,9 +213,7 @@ GenericSave(int file)
#endif
WriteDataToBufferPointer(buf, CGame::currArea);
WriteDataToBufferPointer(buf, CVehicle::bAllTaxisHaveNitro);
- // TODO(Miami): Pad invert Y
- bool invertY = 0;
- WriteDataToBufferPointer(buf, invertY);
+ WriteDataToBufferPointer(buf, CPad::bInvertLook4Pad);
WriteDataToBufferPointer(buf, CTimeCycle::m_ExtraColour);
WriteDataToBufferPointer(buf, CTimeCycle::m_bExtraColourOn);
WriteDataToBufferPointer(buf, CTimeCycle::m_ExtraColourInter);
@@ -279,7 +277,8 @@ GenericSave(int file)
return false;
}
-
+
+ CPad::FixPadsAfterSave();
return true;
}
@@ -352,9 +351,7 @@ GenericLoad()
#endif
ReadDataFromBufferPointer(buf, CGame::currArea);
ReadDataFromBufferPointer(buf, CVehicle::bAllTaxisHaveNitro);
- // TODO(Miami): Pad invert Y
- bool invertY = 0;
- ReadDataFromBufferPointer(buf, invertY);
+ ReadDataFromBufferPointer(buf, CPad::bInvertLook4Pad);
ReadDataFromBufferPointer(buf, CTimeCycle::m_ExtraColour);
ReadDataFromBufferPointer(buf, CTimeCycle::m_bExtraColourOn);
ReadDataFromBufferPointer(buf, CTimeCycle::m_ExtraColourInter);