Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -543,13 +543,21 @@ void DockUpdate::crc( Xfer *xfer )
}

// ------------------------------------------------------------------------------------------------
/** Xfer Method */
/** Xfer Method
* Version Info:
* 1: Initial version
* 2: TheSuperHackers @bugfix bobtista 14/08/2026 Serialize the approach position bone count, so
* a dock with no waiting bones keeps biasing approach positions toward the caller on load */
// ------------------------------------------------------------------------------------------------
void DockUpdate::xfer( Xfer *xfer )
{

// version
#if RETAIL_COMPATIBLE_XFER_SAVE
XferVersion currentVersion = 1;
#else
XferVersion currentVersion = 2;
#endif
XferVersion version = currentVersion;
xfer->xferVersion( &version, currentVersion );

Expand All @@ -568,6 +576,12 @@ void DockUpdate::xfer( Xfer *xfer )
// # approach positions
xfer->xferInt( &m_numberApproachPositions );

// # approach position bones
if( version >= 2 )
{
xfer->xferInt( &m_numberApproachPositionBones );
}

// positions loaded
xfer->xferBool( &m_positionsLoaded );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,13 +558,21 @@ void DockUpdate::crc( Xfer *xfer )
}

// ------------------------------------------------------------------------------------------------
/** Xfer Method */
/** Xfer Method
* Version Info:
* 1: Initial version
* 2: TheSuperHackers @bugfix bobtista 14/08/2026 Serialize the approach position bone count, so
* a dock with no waiting bones keeps biasing approach positions toward the caller on load */
// ------------------------------------------------------------------------------------------------
void DockUpdate::xfer( Xfer *xfer )
{

// version
#if RETAIL_COMPATIBLE_XFER_SAVE
XferVersion currentVersion = 1;
#else
XferVersion currentVersion = 2;
#endif
XferVersion version = currentVersion;
xfer->xferVersion( &version, currentVersion );

Expand All @@ -583,6 +591,12 @@ void DockUpdate::xfer( Xfer *xfer )
// # approach positions
xfer->xferInt( &m_numberApproachPositions );

// # approach position bones
if( version >= 2 )
{
xfer->xferInt( &m_numberApproachPositionBones );
}

// positions loaded
xfer->xferBool( &m_positionsLoaded );

Expand Down
Loading