Skip to content

Commit 4455050

Browse files
committed
Rename macro to ENABLE_CONFIGURABLE_SHROUD
1 parent 39fde6a commit 4455050

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Core/GameEngine/Include/Common/GameDefines.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
#endif
3535

3636
// Originally the configurable shroud sat behind #if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
37-
// Disable RTS_CONFIGURABLE_SHROUD to make shroud hacking a bit more difficult in Release game builds.
38-
// Enable RTS_CONFIGURABLE_SHROUD to properly draw the terrain in World Builder without RTS_DEBUG compiled in.
39-
#ifndef RTS_CONFIGURABLE_SHROUD
40-
#define RTS_CONFIGURABLE_SHROUD (1) // When enabled, the GlobalData contains a field to turn on/off the shroud, otherwise shroud is always enabled
37+
// Enable the configurable shroud to properly draw the terrain in World Builder without RTS_DEBUG compiled in.
38+
// Disable the configurable shroud to make shroud hacking a bit less accessible in Release game builds.
39+
#ifndef ENABLE_CONFIGURABLE_SHROUD
40+
#define ENABLE_CONFIGURABLE_SHROUD (1) // When enabled, the GlobalData contains a field to turn on/off the shroud, otherwise shroud is always enabled
4141
#endif

GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ Int parseNoFX(char *args[], int)
729729
return 1;
730730
}
731731

732-
#if RTS_CONFIGURABLE_SHROUD && (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
732+
#if ENABLE_CONFIGURABLE_SHROUD && (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
733733
Int parseNoShroud(char *args[], int)
734734
{
735735
if (TheWritableGlobalData)
@@ -1285,7 +1285,7 @@ static CommandLineParam params[] =
12851285
{ "-ReplayCRCInterval", parseReplayCRCInterval },
12861286
#endif
12871287

1288-
#if RTS_CONFIGURABLE_SHROUD && (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
1288+
#if ENABLE_CONFIGURABLE_SHROUD && (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
12891289
{ "-noshroud", parseNoShroud },
12901290
#endif
12911291

GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ GlobalData* GlobalData::m_theOriginal = NULL;
488488
{ "KeyboardCameraRotateSpeed", INI::parseReal, NULL, offsetof( GlobalData, m_keyboardCameraRotateSpeed ) },
489489
{ "PlayStats", INI::parseInt, NULL, offsetof( GlobalData, m_playStats ) },
490490

491-
#if RTS_CONFIGURABLE_SHROUD && (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
491+
#if ENABLE_CONFIGURABLE_SHROUD && (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
492492
{ "ShroudOn", INI::parseBool, NULL, offsetof( GlobalData, m_shroudOn ) },
493493
#endif
494494

@@ -551,7 +551,7 @@ GlobalData::GlobalData()
551551
#endif
552552
m_TiVOFastMode = FALSE;
553553

554-
#if RTS_CONFIGURABLE_SHROUD
554+
#if ENABLE_CONFIGURABLE_SHROUD
555555
m_shroudOn = TRUE;
556556
#endif
557557

GeneralsMD/Code/Tools/WorldBuilder/src/WorldBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ BOOL CWorldBuilderApp::InitInstance()
433433
DEBUG_ASSERTCRASH(!TheGlobalData->m_useHalfHeightMap, ("TheGlobalData->m_useHalfHeightMap : Don't use this setting in WB."));
434434
TheWritableGlobalData->m_useHalfHeightMap = false;
435435

436-
#if RTS_CONFIGURABLE_SHROUD
436+
#if ENABLE_CONFIGURABLE_SHROUD
437437
// WB never uses the shroud. With shroud, terrain is black.
438438
TheWritableGlobalData->m_shroudOn = FALSE;
439439
#endif

0 commit comments

Comments
 (0)