diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-02 17:02:17 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-02 17:02:17 +0200 |
commit | f372ce156d76350ef4705ecbf488b43484878ca2 (patch) | |
tree | edf87ceceb886b0f8fa9e57a6b357d0f2d670aed /src/vehicles/Boat.cpp | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
download | re3-f372ce156d76350ef4705ecbf488b43484878ca2.tar re3-f372ce156d76350ef4705ecbf488b43484878ca2.tar.gz re3-f372ce156d76350ef4705ecbf488b43484878ca2.tar.bz2 re3-f372ce156d76350ef4705ecbf488b43484878ca2.tar.lz re3-f372ce156d76350ef4705ecbf488b43484878ca2.tar.xz re3-f372ce156d76350ef4705ecbf488b43484878ca2.tar.zst re3-f372ce156d76350ef4705ecbf488b43484878ca2.zip |
Diffstat (limited to 'src/vehicles/Boat.cpp')
-rw-r--r-- | src/vehicles/Boat.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/vehicles/Boat.cpp b/src/vehicles/Boat.cpp index 615511bd..8c8cce1c 100644 --- a/src/vehicles/Boat.cpp +++ b/src/vehicles/Boat.cpp @@ -32,6 +32,13 @@ float WAKE_LIFETIME = 400.0f; CBoat *CBoat::apFrameWakeGeneratingBoats[4]; +const uint32 CBoat::nSaveStructSize = +#ifdef COMPATIBLE_SAVES + 1156; +#else + sizeof(CBoat); +#endif + CBoat::CBoat(int mi, uint8 owner) : CVehicle(owner) { CVehicleModelInfo *minfo = (CVehicleModelInfo*)CModelInfo::GetModelInfo(mi); @@ -899,3 +906,19 @@ CBoat::AddWakePoint(CVector point) m_nNumWakePoints = 1; } } + +#ifdef COMPATIBLE_SAVES +void +CBoat::Save(uint8*& buf) +{ + CVehicle::Save(buf); + SkipSaveBuf(buf, 1156 - 648); +} + +void +CBoat::Load(uint8*& buf) +{ + CVehicle::Load(buf); + SkipSaveBuf(buf, 1156 - 648); +} +#endif |