Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 8 additions & 1 deletion GeneralsMD/Code/GameEngine/Source/GameLogic/AI/TurretAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,24 @@ void TurretStateMachine::crc( Xfer *xfer )
// ------------------------------------------------------------------------------------------------
void TurretStateMachine::xfer( Xfer *xfer )
{
XferVersion cv = 1;
// TheSuperHackers @bugfix bobtista 19/07/2026 Bump to version 2 to serialize the base
// StateMachine state. Without this the turret reverts to its default state on load.
XferVersion cv = 2;
XferVersion v = cv;
Comment thread
Caball009 marked this conversation as resolved.
Outdated
xfer->xferVersion( &v, cv );

if (v >= 2)
{
StateMachine::xfer(xfer);
}
}

// ------------------------------------------------------------------------------------------------
/** Load post process */
// ------------------------------------------------------------------------------------------------
void TurretStateMachine::loadPostProcess()
{
StateMachine::loadPostProcess();
}

//----------------------------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -837,18 +837,26 @@ void DozerActionStateMachine::crc( Xfer *xfer )
void DozerActionStateMachine::xfer( Xfer *xfer )
{
// version
XferVersion currentVersion = 1;
// TheSuperHackers @bugfix bobtista 19/07/2026 Bump to version 2 to serialize the base
// StateMachine state. Without this the dozer reverts to its default state on load.
Comment thread
Caball009 marked this conversation as resolved.
Outdated
XferVersion currentVersion = 2;
Comment thread
Caball009 marked this conversation as resolved.
XferVersion version = currentVersion;
xfer->xferVersion( &version, currentVersion );

xfer->xferUser(&m_task, sizeof(m_task));

if (version >= 2)
{
StateMachine::xfer(xfer);
}
}

// ------------------------------------------------------------------------------------------------
/** Load post process */
// ------------------------------------------------------------------------------------------------
void DozerActionStateMachine::loadPostProcess()
{
StateMachine::loadPostProcess();
}


Expand Down
Loading