diff options
author | erorcun <erayorcunus@gmail.com> | 2020-10-18 18:37:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-18 18:37:49 +0200 |
commit | 497c1792455a13f7ea0750274c9ba4b3e26830db (patch) | |
tree | ce2c434d0aba2a12b27d04d9ccf70502f05cf4c5 /src/vehicles/Bike.cpp | |
parent | Merge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff) | |
parent | fix in ped attractor (diff) | |
download | re3-497c1792455a13f7ea0750274c9ba4b3e26830db.tar re3-497c1792455a13f7ea0750274c9ba4b3e26830db.tar.gz re3-497c1792455a13f7ea0750274c9ba4b3e26830db.tar.bz2 re3-497c1792455a13f7ea0750274c9ba4b3e26830db.tar.lz re3-497c1792455a13f7ea0750274c9ba4b3e26830db.tar.xz re3-497c1792455a13f7ea0750274c9ba4b3e26830db.tar.zst re3-497c1792455a13f7ea0750274c9ba4b3e26830db.zip |
Diffstat (limited to 'src/vehicles/Bike.cpp')
-rw-r--r-- | src/vehicles/Bike.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/vehicles/Bike.cpp b/src/vehicles/Bike.cpp index b5bc9480..4a4b0516 100644 --- a/src/vehicles/Bike.cpp +++ b/src/vehicles/Bike.cpp @@ -39,6 +39,14 @@ //--MIAMI: file done +const uint32 CBike::nSaveStructSize = +#ifdef COMPATIBLE_SAVES + 1260; +#else + sizeof(CBoat); +#endif + + // TODO: maybe put this somewhere else inline void GetRelativeMatrix(RwMatrix *mat, RwFrame *frm, RwFrame *end) @@ -2922,3 +2930,19 @@ CBike::ReduceHornCounter(void) if(m_nCarHornTimer != 0) m_nCarHornTimer--; } + +#ifdef COMPATIBLE_SAVES +void +CBike::Save(uint8*& buf) +{ + CVehicle::Save(buf); + SkipSaveBuf(buf, 1260 - 672); +} + +void +CBike::Load(uint8*& buf) +{ + CVehicle::Load(buf); + SkipSaveBuf(buf, 1260 - 672); +} +#endif |