Skip to content

Commit d453a21

Browse files
authored
build: Add RETAIL_COMPATIBLE_BUG as build prerequisite for the tunnel healing fix (#1783)
1 parent 7a6402b commit d453a21

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

Generals/Code/GameEngine/Include/Common/TunnelTracker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class TunnelTracker : public MemoryPoolObject,
5959
static void destroyObject( Object *obj, void *userData ); ///< Callback for Iterate Contained system
6060
static void healObject( Object *obj, void *frames ); ///< Callback for Iterate Contained system
6161

62-
#if RETAIL_COMPATIBLE_CRC
62+
#if RETAIL_COMPATIBLE_BUG || RETAIL_COMPATIBLE_CRC
6363
void healObjects(Real frames); ///< heal all objects within the tunnel
6464
#else
6565
void healObjects(); ///< heal all objects within the tunnel

Generals/Code/GameEngine/Source/Common/RTS/Player.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ void Player::update()
677677
}
678678
}
679679

680-
#if !RETAIL_COMPATIBLE_CRC
680+
#if !RETAIL_COMPATIBLE_BUG && !RETAIL_COMPATIBLE_CRC
681681
// TheSuperHackers @bugfix Stubbjax 26/09/2025 The Tunnel System now heals
682682
// all units once per frame instead of once per frame per Tunnel Network.
683683
TunnelTracker* tunnelSystem = getTunnelSystem();

Generals/Code/GameEngine/Source/Common/RTS/TunnelTracker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ void TunnelTracker::destroyObject( Object *obj, void * )
256256

257257
// ------------------------------------------------------------------------
258258
// heal all the objects within the tunnel system using the iterateContained function
259-
#if RETAIL_COMPATIBLE_CRC
259+
#if RETAIL_COMPATIBLE_BUG || RETAIL_COMPATIBLE_CRC
260260
void TunnelTracker::healObjects(Real frames)
261261
{
262262
iterateContained(healObject, &frames, FALSE);
@@ -280,7 +280,7 @@ void TunnelTracker::healObject( Object *obj, void *frames)
280280
{
281281

282282
//get the number of frames to heal
283-
#if RETAIL_COMPATIBLE_CRC
283+
#if RETAIL_COMPATIBLE_BUG || RETAIL_COMPATIBLE_CRC
284284
Real *framesForFullHeal = (Real*)frames;
285285
#else
286286
UnsignedInt* framesForFullHeal = (UnsignedInt*)frames;

Generals/Code/GameEngine/Source/GameLogic/Object/Contain/TunnelContain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ UpdateSleepTime TunnelContain::update( void )
403403
if (controllingPlayer)
404404
{
405405
TunnelTracker *tunnelSystem = controllingPlayer->getTunnelSystem();
406-
#if RETAIL_COMPATIBLE_CRC
406+
#if RETAIL_COMPATIBLE_BUG || RETAIL_COMPATIBLE_CRC
407407
if (tunnelSystem)
408408
{
409409
const TunnelContainModuleData* modData = getTunnelContainModuleData();

GeneralsMD/Code/GameEngine/Include/Common/TunnelTracker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class TunnelTracker : public MemoryPoolObject,
5959
static void destroyObject( Object *obj, void *userData ); ///< Callback for Iterate Contained system
6060
static void healObject( Object *obj, void *frames ); ///< Callback for Iterate Contained system
6161

62-
#if RETAIL_COMPATIBLE_CRC
62+
#if RETAIL_COMPATIBLE_BUG || RETAIL_COMPATIBLE_CRC
6363
void healObjects(Real frames); ///< heal all objects within the tunnel
6464
#else
6565
void healObjects(); ///< heal all objects within the tunnel

GeneralsMD/Code/GameEngine/Source/Common/RTS/Player.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ void Player::update()
717717
}
718718
}
719719

720-
#if !RETAIL_COMPATIBLE_CRC
720+
#if !RETAIL_COMPATIBLE_BUG && !RETAIL_COMPATIBLE_CRC
721721
// TheSuperHackers @bugfix Stubbjax 26/09/2025 The Tunnel System now heals
722722
// all units once per frame instead of once per frame per Tunnel Network.
723723
TunnelTracker* tunnelSystem = getTunnelSystem();

GeneralsMD/Code/GameEngine/Source/Common/RTS/TunnelTracker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ void TunnelTracker::destroyObject( Object *obj, void * )
257257

258258
// ------------------------------------------------------------------------
259259
// heal all the objects within the tunnel system using the iterateContained function
260-
#if RETAIL_COMPATIBLE_CRC
260+
#if RETAIL_COMPATIBLE_BUG || RETAIL_COMPATIBLE_CRC
261261
void TunnelTracker::healObjects(Real frames)
262262
{
263263
iterateContained(healObject, &frames, FALSE);
@@ -281,7 +281,7 @@ void TunnelTracker::healObject( Object *obj, void *frames)
281281
{
282282

283283
//get the number of frames to heal
284-
#if RETAIL_COMPATIBLE_CRC
284+
#if RETAIL_COMPATIBLE_BUG || RETAIL_COMPATIBLE_CRC
285285
Real *framesForFullHeal = (Real*)frames;
286286
#else
287287
UnsignedInt* framesForFullHeal = (UnsignedInt*)frames;

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain/TunnelContain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ UpdateSleepTime TunnelContain::update( void )
539539
if (controllingPlayer)
540540
{
541541
TunnelTracker *tunnelSystem = controllingPlayer->getTunnelSystem();
542-
#if RETAIL_COMPATIBLE_CRC
542+
#if RETAIL_COMPATIBLE_BUG || RETAIL_COMPATIBLE_CRC
543543
if (tunnelSystem)
544544
{
545545
const TunnelContainModuleData* modData = getTunnelContainModuleData();

0 commit comments

Comments
 (0)