Skip to content

Commit c9b48ce

Browse files
committed
revert xfer changes that were out of scope for this PR
1 parent 52f5452 commit c9b48ce

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

Generals/Code/GameEngine/Source/GameLogic/Object/Update/ParticleUplinkCannonUpdate.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,6 @@ void ParticleUplinkCannonUpdate::crc( Xfer *xfer )
13211321
* Version Info:
13221322
* 1: Initial version
13231323
* 2: Serialize decay frames
1324-
* 3: TheSuperHackers @tweak Serialize manual target mode
13251324
* 4: TheSuperHackers @tweak Serialize orbit to target laser radius
13261325
*/
13271326
// ------------------------------------------------------------------------------------------------
@@ -1330,7 +1329,7 @@ void ParticleUplinkCannonUpdate::xfer( Xfer *xfer )
13301329
const ParticleUplinkCannonUpdateModuleData *data = getParticleUplinkCannonUpdateModuleData();
13311330

13321331
// version
1333-
#if RETAIL_COMPATIBLE_CRC || RETAIL_COMPATIBLE_XFER_SAVE
1332+
#if RETAIL_COMPATIBLE_XFER_SAVE
13341333
const XferVersion currentVersion = 2;
13351334
#else
13361335
const XferVersion currentVersion = 4;
@@ -1431,15 +1430,10 @@ void ParticleUplinkCannonUpdate::xfer( Xfer *xfer )
14311430
}
14321431

14331432
// the time of last manual target click
1434-
xfer->xferUnsignedInt( &m_lastDrivingClickFrame );
1435-
xfer->xferUnsignedInt( &m_2ndLastDrivingClickFrame );
1433+
xfer->xferUnsignedInt( & m_lastDrivingClickFrame );
14361434

1437-
#if !RETAIL_COMPATIBLE_CRC && !RETAIL_COMPATIBLE_XFER_SAVE
1438-
if( version >= 3 )
1439-
{
1440-
xfer->xferBool( &m_manualTargetMode );
1441-
}
1442-
#endif
1435+
// the time of the 2nd last manual target click
1436+
xfer->xferUnsignedInt( &m_2ndLastDrivingClickFrame );
14431437

14441438
if( version >= 4 )
14451439
{

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/ParticleUplinkCannonUpdate.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ void ParticleUplinkCannonUpdate::xfer( Xfer *xfer )
14141414
const ParticleUplinkCannonUpdateModuleData *data = getParticleUplinkCannonUpdateModuleData();
14151415

14161416
// version
1417-
#if RETAIL_COMPATIBLE_CRC || RETAIL_COMPATIBLE_XFER_SAVE
1417+
#if RETAIL_COMPATIBLE_XFER_SAVE
14181418
const XferVersion currentVersion = 3;
14191419
#else
14201420
const XferVersion currentVersion = 4;
@@ -1515,7 +1515,9 @@ void ParticleUplinkCannonUpdate::xfer( Xfer *xfer )
15151515
}
15161516

15171517
// the time of last manual target click
1518-
xfer->xferUnsignedInt( &m_lastDrivingClickFrame );
1518+
xfer->xferUnsignedInt( & m_lastDrivingClickFrame );
1519+
1520+
// the time of the 2nd last manual target click
15191521
xfer->xferUnsignedInt( &m_2ndLastDrivingClickFrame );
15201522

15211523
if( version >= 3 )

0 commit comments

Comments
 (0)