summaryrefslogtreecommitdiffstats
path: root/src/save/GenericGameStorage.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-07 23:21:44 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-07 23:26:24 +0200
commitda39624f1c694dbeaefc6762fd6867715cdb77bc (patch)
tree58d34e45cba86fba08992f522e34fc182f215eb2 /src/save/GenericGameStorage.cpp
parentFix build on clang (diff)
downloadre3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar
re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.gz
re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.bz2
re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.lz
re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.xz
re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.tar.zst
re3-da39624f1c694dbeaefc6762fd6867715cdb77bc.zip
Diffstat (limited to '')
-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);