File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Behavior
Generals/Code/GameEngine/Source/GameLogic/Object/Behavior Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,11 @@ void PoisonedBehavior::xfer( Xfer *xfer )
213213{
214214
215215 // version
216+ #if RETAIL_COMPATIBLE_XFER_SAVE
217+ const XferVersion currentVersion = 2 ;
218+ #else
216219 const XferVersion currentVersion = 3 ;
220+ #endif
217221 XferVersion version = currentVersion;
218222 xfer->xferVersion ( &version, currentVersion );
219223
@@ -234,10 +238,12 @@ void PoisonedBehavior::xfer( Xfer *xfer )
234238 xfer->xferUser (&m_deathType, sizeof (m_deathType));
235239 }
236240
241+ #if !RETAIL_COMPATIBLE_XFER_SAVE
237242 if (version >= 3 )
238243 {
239244 xfer->xferObjectID (&m_poisonSource);
240245 }
246+ #endif
241247}
242248
243249// ------------------------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -214,7 +214,11 @@ void PoisonedBehavior::xfer( Xfer *xfer )
214214{
215215
216216 // version
217+ #if RETAIL_COMPATIBLE_XFER_SAVE
218+ const XferVersion currentVersion = 2 ;
219+ #else
217220 const XferVersion currentVersion = 3 ;
221+ #endif
218222 XferVersion version = currentVersion;
219223 xfer->xferVersion ( &version, currentVersion );
220224
@@ -235,10 +239,12 @@ void PoisonedBehavior::xfer( Xfer *xfer )
235239 xfer->xferUser (&m_deathType, sizeof (m_deathType));
236240 }
237241
242+ #if !RETAIL_COMPATIBLE_XFER_SAVE
238243 if (version >= 3 )
239244 {
240245 xfer->xferObjectID (&m_poisonSource);
241246 }
247+ #endif
242248}
243249
244250// ------------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments