Skip to content

Commit 567e600

Browse files
authored
build(debug): Fix GeneralsMD debug compile error when logging is turned off (#1372)
1 parent 421c627 commit 567e600

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIPlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@ void AIPlayer::recruitSpecificAITeam(TeamPrototype *teamProto, Real recruitRadiu
26032603
AIUpdateInterface *ai = unit->getAIUpdateInterface();
26042604
if (ai)
26052605
{
2606-
#if defined(RTS_DEBUG)
2606+
#ifdef DEBUG_LOGGING
26072607
Coord3D pos = *unit->getPosition();
26082608
Coord3D to = teamProto->getTemplateInfo()->m_homeLocation;
26092609
DEBUG_LOG(("Moving unit from %f,%f to %f,%f", pos.x, pos.y , to.x, to.y ));

GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AISkirmishPlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ void AISkirmishPlayer::recruitSpecificAITeam(TeamPrototype *teamProto, Real recr
808808
AIUpdateInterface *ai = unit->getAIUpdateInterface();
809809
if (ai)
810810
{
811-
#if defined(RTS_DEBUG)
811+
#ifdef DEBUG_LOGGING
812812
Coord3D pos = *unit->getPosition();
813813
Coord3D to = teamProto->getTemplateInfo()->m_homeLocation;
814814
DEBUG_LOG(("Moving unit from %f,%f to %f,%f", pos.x, pos.y , to.x, to.y ));

0 commit comments

Comments
 (0)