diff options
author | aap <aap@papnet.eu> | 2020-04-16 09:23:31 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-04-16 09:23:31 +0200 |
commit | 89b7085353f9ade38c2f2d4cac4aa9caf9db6a9d (patch) | |
tree | cbecbce7d638d7175ea4ee5c8b402c00564c017e /src/save | |
parent | Merge branch 'master' of github.com:gtamodding/re3 (diff) | |
parent | Merge pull request #453 from Fire-Head/master (diff) | |
download | re3-89b7085353f9ade38c2f2d4cac4aa9caf9db6a9d.tar re3-89b7085353f9ade38c2f2d4cac4aa9caf9db6a9d.tar.gz re3-89b7085353f9ade38c2f2d4cac4aa9caf9db6a9d.tar.bz2 re3-89b7085353f9ade38c2f2d4cac4aa9caf9db6a9d.tar.lz re3-89b7085353f9ade38c2f2d4cac4aa9caf9db6a9d.tar.xz re3-89b7085353f9ade38c2f2d4cac4aa9caf9db6a9d.tar.zst re3-89b7085353f9ade38c2f2d4cac4aa9caf9db6a9d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/save/GenericGameStorage.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp index 0ec0b117..1e4acd3d 100644 --- a/src/save/GenericGameStorage.cpp +++ b/src/save/GenericGameStorage.cpp @@ -154,8 +154,17 @@ GenericSave(int file) WriteDataToBufferPointer(buf, CompileDateAndTime.m_nMonth); WriteDataToBufferPointer(buf, CompileDateAndTime.m_nYear); WriteDataToBufferPointer(buf, CWeather::WeatherTypeInList); +#ifdef FIX_BUGS + // converted to float for compatibility with original format + // TODO: maybe remove this? not really gonna break anything vital + float f = TheCamera.CarZoomIndicator; + WriteDataToBufferPointer(buf, f); + f = TheCamera.PedZoomIndicator; + WriteDataToBufferPointer(buf, f); +#else WriteDataToBufferPointer(buf, TheCamera.CarZoomIndicator); WriteDataToBufferPointer(buf, TheCamera.PedZoomIndicator); +#endif assert(buf - work_buff == SIZE_OF_SIMPLEVARS); // Save scripts, block is nested within the same block as simple vars for some reason @@ -264,8 +273,18 @@ GenericLoad() ReadDataFromBufferPointer(buf, CompileDateAndTime.m_nMonth); ReadDataFromBufferPointer(buf, CompileDateAndTime.m_nYear); ReadDataFromBufferPointer(buf, CWeather::WeatherTypeInList); +#ifdef FIX_BUGS + // converted to float for compatibility with original format + // TODO: maybe remove this? not really gonna break anything vital + float f; + ReadDataFromBufferPointer(buf, f); + TheCamera.CarZoomIndicator = f; + ReadDataFromBufferPointer(buf, f); + TheCamera.PedZoomIndicator = f; +#else ReadDataFromBufferPointer(buf, TheCamera.CarZoomIndicator); ReadDataFromBufferPointer(buf, TheCamera.PedZoomIndicator); +#endif assert(buf - work_buff == SIZE_OF_SIMPLEVARS); ReadDataFromBlock("Loading Scripts \n", CTheScripts::LoadAllScripts); |