Skip to content

Commit 8f2c9e9

Browse files
committed
[GEN][ZH] Fix DEBUG_CRC compile errors
1 parent ab88779 commit 8f2c9e9

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Generals/Code/GameEngine/Include/GameLogic/Object.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,10 +763,10 @@ class Object : public Thing, public Snapshot
763763

764764
}; // end class Object
765765

766-
#ifdef DEBUG_LOGGING
766+
#ifdef DEBUG_CRC
767767
// describe an object as an AsciiString: e.g. "Object 102 (KillerBuggy) [GLARocketBuggy, owned by player 2 (GLAIntroPlayer)]"
768768
AsciiString DescribeObject(const Object *obj);
769-
#endif // DEBUG_LOGGING
769+
#endif
770770

771771
#if defined(_DEBUG) || defined(_INTERNAL)
772772
#define DEBUG_OBJECT_ID_EXISTS

Generals/Code/GameEngine/Source/GameLogic/AI/AIPathfind.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ void Path::computePointOnPath(
743743
ClosestPointOnPathInfo& out
744744
)
745745
{
746-
CRCDEBUG_LOG(("Path::computePointOnPath() fzor %s\n", DescribeObject(obj).str()));
746+
CRCDEBUG_LOG(("Path::computePointOnPath() for %s\n", DescribeObject(obj).str()));
747747

748748
out.layer = LAYER_GROUND;
749749
out.posOnPath.zero();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ extern void addIcon(const Coord3D *pos, Real width, Int numFramesDuration, RGBCo
142142

143143
//-------------------------------------------------------------------------------------------------
144144
//-------------------------------------------------------------------------------------------------
145-
#ifdef DEBUG_LOGGING
145+
#ifdef DEBUG_CRC
146146
AsciiString DescribeObject(const Object *obj)
147147
{
148148
if (!obj)

GeneralsMD/Code/GameEngine/Include/GameLogic/Object.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,10 +811,10 @@ class Object : public Thing, public Snapshot
811811

812812
}; // end class Object
813813

814-
#ifdef DEBUG_LOGGING
814+
#ifdef DEBUG_CRC
815815
// describe an object as an AsciiString: e.g. "Object 102 (KillerBuggy) [GLARocketBuggy, owned by player 2 (GLAIntroPlayer)]"
816816
AsciiString DescribeObject(const Object *obj);
817-
#endif // DEBUG_LOGGING
817+
#endif
818818

819819
#if defined(_DEBUG) || defined(_INTERNAL)
820820
#define DEBUG_OBJECT_ID_EXISTS

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ void Path::computePointOnPath(
760760
ClosestPointOnPathInfo& out
761761
)
762762
{
763-
CRCDEBUG_LOG(("Path::computePointOnPath() fzor %s\n", DescribeObject(obj).str()));
763+
CRCDEBUG_LOG(("Path::computePointOnPath() for %s\n", DescribeObject(obj).str()));
764764

765765
out.layer = LAYER_GROUND;
766766
out.posOnPath.zero();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ extern void addIcon(const Coord3D *pos, Real width, Int numFramesDuration, RGBCo
152152

153153
//-------------------------------------------------------------------------------------------------
154154
//-------------------------------------------------------------------------------------------------
155-
#ifdef DEBUG_LOGGING
155+
#ifdef DEBUG_CRC
156156
AsciiString DescribeObject(const Object *obj)
157157
{
158158
if (!obj)

0 commit comments

Comments
 (0)