diff --git a/Core/GameEngine/Include/Common/GameDefines.h b/Core/GameEngine/Include/Common/GameDefines.h index fbec68409f..5ae9d2a9f0 100644 --- a/Core/GameEngine/Include/Common/GameDefines.h +++ b/Core/GameEngine/Include/Common/GameDefines.h @@ -40,3 +40,10 @@ #ifndef ENABLE_GAMETEXT_SUBSTITUTES #define ENABLE_GAMETEXT_SUBSTITUTES (1) // The code can provide substitute texts when labels and strings are missing in the STR or CSF translation file #endif + +// Previously the configurable shroud sat behind #if defined(RTS_DEBUG) +// Enable the configurable shroud to properly draw the terrain in World Builder without RTS_DEBUG compiled in. +// Disable the configurable shroud to make shroud hacking a bit less accessible in Release game builds. +#ifndef ENABLE_CONFIGURABLE_SHROUD +#define ENABLE_CONFIGURABLE_SHROUD (1) // When enabled, the GlobalData contains a field to turn on/off the shroud, otherwise shroud is always enabled +#endif diff --git a/Generals/Code/GameEngine/Include/Common/GameCommon.h b/Generals/Code/GameEngine/Include/Common/GameCommon.h index 32f7bd8fde..ce36e1c50a 100644 --- a/Generals/Code/GameEngine/Include/Common/GameCommon.h +++ b/Generals/Code/GameEngine/Include/Common/GameCommon.h @@ -52,6 +52,7 @@ // ---------------------------------------------------------------------------------------------- #include "Lib/BaseType.h" +#include "Common/GameDefines.h" // ---------------------------------------------------------------------------------------------- #if defined(RTS_DEBUG) diff --git a/Generals/Code/GameEngine/Include/Common/GlobalData.h b/Generals/Code/GameEngine/Include/Common/GlobalData.h index 19cb080c38..191c9c9697 100644 --- a/Generals/Code/GameEngine/Include/Common/GlobalData.h +++ b/Generals/Code/GameEngine/Include/Common/GlobalData.h @@ -465,15 +465,16 @@ class GlobalData : public SubsystemInterface Int m_playStats; ///< Int whether we want to log play stats or not, if <= 0 then we don't log Bool m_TiVOFastMode; ///< When true, the client speeds up the framerate... set by HOTKEY! - +#if defined(RTS_DEBUG) || ENABLE_CONFIGURABLE_SHROUD + Bool m_shroudOn; +#endif #if defined(RTS_DEBUG) Bool m_wireframe; Bool m_stateMachineDebug; Bool m_useCameraConstraints; Bool m_specialPowerUsesDelay; - Bool m_shroudOn; Bool m_fogOfWarOn; Bool m_jabberOn; Bool m_munkeeOn; diff --git a/Generals/Code/GameEngine/Include/Precompiled/PreRTS.h b/Generals/Code/GameEngine/Include/Precompiled/PreRTS.h index cd2daff73a..361876de40 100644 --- a/Generals/Code/GameEngine/Include/Precompiled/PreRTS.h +++ b/Generals/Code/GameEngine/Include/Precompiled/PreRTS.h @@ -111,7 +111,6 @@ class STLSpecialAlloc; #include "Common/SubsystemInterface.h" #include "Common/GameCommon.h" -#include "Common/GameDefines.h" #include "Common/GameMemory.h" #include "Common/GameType.h" #include "Common/GlobalData.h" diff --git a/Generals/Code/GameEngine/Source/Common/CommandLine.cpp b/Generals/Code/GameEngine/Source/Common/CommandLine.cpp index 5e95fbfff9..b8bc89d8bb 100644 --- a/Generals/Code/GameEngine/Source/Common/CommandLine.cpp +++ b/Generals/Code/GameEngine/Source/Common/CommandLine.cpp @@ -718,7 +718,7 @@ Int parseNoFX(char *args[], int) return 1; } -#if defined(RTS_DEBUG) +#if defined(RTS_DEBUG) && ENABLE_CONFIGURABLE_SHROUD Int parseNoShroud(char *args[], int) { TheWritableGlobalData->m_shroudOn = FALSE; @@ -1277,7 +1277,9 @@ static CommandLineParam paramsForEngineInit[] = { "-vTune", parseVTune }, { "-selectTheUnselectable", parseSelectAll }, { "-RunAhead", parseRunAhead }, +#if ENABLE_CONFIGURABLE_SHROUD { "-noshroud", parseNoShroud }, +#endif { "-forceBenchmark", parseForceBenchmark }, { "-buildmapcache", parseBuildMapCache }, { "-noshadowvolumes", parseNoShadows }, diff --git a/Generals/Code/GameEngine/Source/Common/GlobalData.cpp b/Generals/Code/GameEngine/Source/Common/GlobalData.cpp index 220d0c5aa0..ac732f888b 100644 --- a/Generals/Code/GameEngine/Source/Common/GlobalData.cpp +++ b/Generals/Code/GameEngine/Source/Common/GlobalData.cpp @@ -545,11 +545,14 @@ GlobalData::GlobalData() m_TiVOFastMode = FALSE; +#if defined(RTS_DEBUG) || ENABLE_CONFIGURABLE_SHROUD + m_shroudOn = TRUE; +#endif + #if defined(RTS_DEBUG) m_wireframe = 0; m_stateMachineDebug = FALSE; m_useCameraConstraints = TRUE; - m_shroudOn = TRUE; m_fogOfWarOn = FALSE; m_jabberOn = FALSE; m_munkeeOn = FALSE; diff --git a/Generals/Code/GameEngine/Source/GameClient/GameClient.cpp b/Generals/Code/GameEngine/Source/GameClient/GameClient.cpp index 9d639e17da..e38f24e67d 100644 --- a/Generals/Code/GameEngine/Source/GameClient/GameClient.cpp +++ b/Generals/Code/GameEngine/Source/GameClient/GameClient.cpp @@ -614,7 +614,7 @@ void GameClient::update( void ) if (!freezeTime) { -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (TheGlobalData->m_shroudOn) #else if (true) @@ -645,7 +645,7 @@ void GameClient::update( void ) while (draw) { // update() could free the Drawable, so go ahead and grab 'next' Drawable* next = draw->getNextDrawable(); -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (TheGlobalData->m_shroudOn) #else if (true) diff --git a/Generals/Code/GameEngine/Source/GameClient/InGameUI.cpp b/Generals/Code/GameEngine/Source/GameClient/InGameUI.cpp index 99fb712174..d0d77e67dd 100644 --- a/Generals/Code/GameEngine/Source/GameClient/InGameUI.cpp +++ b/Generals/Code/GameEngine/Source/GameClient/InGameUI.cpp @@ -2483,7 +2483,7 @@ void InGameUI::createCommandHint( const GameMessage *msg ) { const Object* obj = draw->getObject(); Int localPlayerIndex = ThePlayerList ? ThePlayerList->getLocalPlayer()->getPlayerIndex() : 0; -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD ObjectShroudStatus ss = (!obj || !TheGlobalData->m_shroudOn) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex); #else ObjectShroudStatus ss = (!obj) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex); diff --git a/Generals/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp b/Generals/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp index ef533d0ff3..2dd696d2fb 100644 --- a/Generals/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp +++ b/Generals/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp @@ -1263,7 +1263,7 @@ void W3DRadar::buildTerrainTexture( TerrainLogic *terrain ) //------------------------------------------------------------------------------------------------- void W3DRadar::clearShroud() { -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (!TheGlobalData->m_shroudOn) return; #endif @@ -1283,7 +1283,7 @@ void W3DRadar::clearShroud() //------------------------------------------------------------------------------------------------- void W3DRadar::setShroudLevel(Int shroudX, Int shroudY, CellShroudStatus setting) { -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (!TheGlobalData->m_shroudOn) return; #endif @@ -1420,7 +1420,7 @@ void W3DRadar::draw( Int pixelX, Int pixelY, Int width, Int height ) TheDisplay->drawImage( m_overlayImage, ul.x, ul.y, lr.x, lr.y ); // draw the shroud image -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if( TheGlobalData->m_shroudOn ) #else if (true) diff --git a/Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DScene.cpp b/Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DScene.cpp index b8d49b810a..72ce76f87d 100644 --- a/Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DScene.cpp +++ b/Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DScene.cpp @@ -99,7 +99,7 @@ RTS3DScene::RTS3DScene() m_scratchLight = NEW_REF( LightClass, (LightClass::DIRECTIONAL) ); // REF_PTR_SET(m_globalLight[lightIndex], pLight); -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (TheGlobalData->m_shroudOn) m_shroudMaterialPass = NEW_REF(W3DShroudMaterialPassClass,()); else @@ -753,7 +753,7 @@ void RTS3DScene::renderOneObject(RenderInfoClass &rinfo, RenderObjClass *robj, I if (drawInfo) { -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (!TheGlobalData->m_shroudOn) ss = OBJECTSHROUD_CLEAR; #endif diff --git a/Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp b/Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp index c4445e49c4..5ecd1dc248 100644 --- a/Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp +++ b/Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp @@ -845,7 +845,7 @@ static void drawablePostDraw( Drawable *draw, void *userData ) Object* obj = draw->getObject(); Int localPlayerIndex = ThePlayerList ? ThePlayerList->getLocalPlayer()->getPlayerIndex() : 0; -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD ObjectShroudStatus ss = (!obj || !TheGlobalData->m_shroudOn) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex); #else ObjectShroudStatus ss = (!obj) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex); diff --git a/Generals/Code/Tools/WorldBuilder/src/WorldBuilder.cpp b/Generals/Code/Tools/WorldBuilder/src/WorldBuilder.cpp index 43bed5d81d..f0c2cf0ccd 100644 --- a/Generals/Code/Tools/WorldBuilder/src/WorldBuilder.cpp +++ b/Generals/Code/Tools/WorldBuilder/src/WorldBuilder.cpp @@ -403,8 +403,8 @@ BOOL CWorldBuilderApp::InitInstance() DEBUG_ASSERTCRASH(!TheGlobalData->m_useHalfHeightMap, ("TheGlobalData->m_useHalfHeightMap : Don't use this setting in WB.")); TheWritableGlobalData->m_useHalfHeightMap = false; -#if defined(RTS_DEBUG) - // WB never uses the shroud. +#if ENABLE_CONFIGURABLE_SHROUD + // WB never uses the shroud. With shroud, terrain is black. TheWritableGlobalData->m_shroudOn = FALSE; #endif diff --git a/GeneralsMD/Code/GameEngine/Include/Common/GameCommon.h b/GeneralsMD/Code/GameEngine/Include/Common/GameCommon.h index 6e938c7010..1d40f77448 100644 --- a/GeneralsMD/Code/GameEngine/Include/Common/GameCommon.h +++ b/GeneralsMD/Code/GameEngine/Include/Common/GameCommon.h @@ -58,6 +58,7 @@ // ---------------------------------------------------------------------------------------------- #include "Lib/BaseType.h" +#include "Common/GameDefines.h" // ---------------------------------------------------------------------------------------------- #if defined(RTS_DEBUG) diff --git a/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h b/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h index d986d77495..c1f328e4ca 100644 --- a/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h +++ b/GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h @@ -39,7 +39,6 @@ #include "Common/SubsystemInterface.h" #include "GameClient/Color.h" #include "Common/STLTypedefs.h" -#include "Common/GameCommon.h" #include "Common/Money.h" // FORWARD DECLARATIONS /////////////////////////////////////////////////////////////////////////// @@ -480,14 +479,15 @@ class GlobalData : public SubsystemInterface Bool m_specialPowerUsesDelay ; #endif Bool m_TiVOFastMode; ///< When true, the client speeds up the framerate... set by HOTKEY! - +#if defined(RTS_DEBUG) || ENABLE_CONFIGURABLE_SHROUD + Bool m_shroudOn; +#endif #if defined(RTS_DEBUG) Bool m_wireframe; Bool m_stateMachineDebug; Bool m_useCameraConstraints; - Bool m_shroudOn; Bool m_fogOfWarOn; Bool m_jabberOn; Bool m_munkeeOn; diff --git a/GeneralsMD/Code/GameEngine/Include/Precompiled/PreRTS.h b/GeneralsMD/Code/GameEngine/Include/Precompiled/PreRTS.h index 1ecc85d85c..c9db802fb0 100644 --- a/GeneralsMD/Code/GameEngine/Include/Precompiled/PreRTS.h +++ b/GeneralsMD/Code/GameEngine/Include/Precompiled/PreRTS.h @@ -111,7 +111,6 @@ class STLSpecialAlloc; #include "Common/SubsystemInterface.h" #include "Common/GameCommon.h" -#include "Common/GameDefines.h" #include "Common/GameMemory.h" #include "Common/GameType.h" #include "Common/GlobalData.h" diff --git a/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp b/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp index 0a25c90db7..0dbf428642 100644 --- a/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp +++ b/GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp @@ -718,7 +718,7 @@ Int parseNoFX(char *args[], int) return 1; } -#if defined(RTS_DEBUG) +#if defined(RTS_DEBUG) && ENABLE_CONFIGURABLE_SHROUD Int parseNoShroud(char *args[], int) { TheWritableGlobalData->m_shroudOn = FALSE; @@ -1277,7 +1277,9 @@ static CommandLineParam paramsForEngineInit[] = { "-vTune", parseVTune }, { "-selectTheUnselectable", parseSelectAll }, { "-RunAhead", parseRunAhead }, +#if ENABLE_CONFIGURABLE_SHROUD { "-noshroud", parseNoShroud }, +#endif { "-forceBenchmark", parseForceBenchmark }, { "-buildmapcache", parseBuildMapCache }, { "-noshadowvolumes", parseNoShadows }, diff --git a/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp b/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp index 7e4469e0ae..f4289e2bd1 100644 --- a/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp +++ b/GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp @@ -548,11 +548,14 @@ GlobalData::GlobalData() #endif m_TiVOFastMode = FALSE; +#if defined(RTS_DEBUG) || ENABLE_CONFIGURABLE_SHROUD + m_shroudOn = TRUE; +#endif + #if defined(RTS_DEBUG) m_wireframe = 0; m_stateMachineDebug = FALSE; m_useCameraConstraints = TRUE; - m_shroudOn = TRUE; m_fogOfWarOn = FALSE; m_jabberOn = FALSE; m_munkeeOn = FALSE; diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp index b8a444231d..05c09cf490 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp @@ -652,7 +652,7 @@ void GameClient::update( void ) if (!freezeTime) { -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (TheGlobalData->m_shroudOn) #else if (true) @@ -683,7 +683,7 @@ void GameClient::update( void ) while (draw) { // update() could free the Drawable, so go ahead and grab 'next' Drawable* next = draw->getNextDrawable(); -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (TheGlobalData->m_shroudOn) #else if (true) diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp index 19662d0d8c..dae097172f 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp @@ -2543,7 +2543,7 @@ void InGameUI::createCommandHint( const GameMessage *msg ) { const Object* obj = draw->getObject(); Int localPlayerIndex = ThePlayerList ? ThePlayerList->getLocalPlayer()->getPlayerIndex() : 0; -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD ObjectShroudStatus ss = (!obj || !TheGlobalData->m_shroudOn) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex); #else ObjectShroudStatus ss = (!obj) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex); diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp index a3d6565943..7186959e5a 100644 --- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp +++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp @@ -1251,7 +1251,7 @@ void W3DRadar::buildTerrainTexture( TerrainLogic *terrain ) //------------------------------------------------------------------------------------------------- void W3DRadar::clearShroud() { -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (!TheGlobalData->m_shroudOn) return; #endif @@ -1271,7 +1271,7 @@ void W3DRadar::clearShroud() //------------------------------------------------------------------------------------------------- void W3DRadar::setShroudLevel(Int shroudX, Int shroudY, CellShroudStatus setting) { -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (!TheGlobalData->m_shroudOn) return; #endif @@ -1408,7 +1408,7 @@ void W3DRadar::draw( Int pixelX, Int pixelY, Int width, Int height ) TheDisplay->drawImage( m_overlayImage, ul.x, ul.y, lr.x, lr.y ); // draw the shroud image -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if( TheGlobalData->m_shroudOn ) #else if (true) diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/BaseHeightMap.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/BaseHeightMap.cpp index e0e18a6cad..14a4bb5e7d 100644 --- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/BaseHeightMap.cpp +++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/BaseHeightMap.cpp @@ -315,7 +315,7 @@ BaseHeightMapRenderObjClass::BaseHeightMapRenderObjClass(void) #ifdef DO_ROADS m_roadBuffer = NEW W3DRoadBuffer; #endif -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (TheGlobalData->m_shroudOn) m_shroud = NEW W3DShroud; #else diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DScene.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DScene.cpp index e9284e54ce..25bad5c9b4 100644 --- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DScene.cpp +++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DScene.cpp @@ -100,7 +100,7 @@ RTS3DScene::RTS3DScene() m_scratchLight = NEW_REF( LightClass, (LightClass::DIRECTIONAL) ); // REF_PTR_SET(m_globalLight[lightIndex], pLight); -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (TheGlobalData->m_shroudOn) m_shroudMaterialPass = NEW_REF(W3DShroudMaterialPassClass,()); else @@ -791,7 +791,7 @@ void RTS3DScene::renderOneObject(RenderInfoClass &rinfo, RenderObjClass *robj, I if (drawInfo) { -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD if (!TheGlobalData->m_shroudOn) ss = OBJECTSHROUD_CLEAR; #endif diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp index 3b8f3ab842..deeac467cb 100644 --- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp +++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DView.cpp @@ -989,7 +989,7 @@ static void drawablePostDraw( Drawable *draw, void *userData ) Object* obj = draw->getObject(); Int localPlayerIndex = ThePlayerList ? ThePlayerList->getLocalPlayer()->getPlayerIndex() : 0; -#if defined(RTS_DEBUG) +#if ENABLE_CONFIGURABLE_SHROUD ObjectShroudStatus ss = (!obj || !TheGlobalData->m_shroudOn) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex); #else ObjectShroudStatus ss = (!obj) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex); diff --git a/GeneralsMD/Code/Tools/WorldBuilder/src/WorldBuilder.cpp b/GeneralsMD/Code/Tools/WorldBuilder/src/WorldBuilder.cpp index 1436f264c4..e316c9f9f2 100644 --- a/GeneralsMD/Code/Tools/WorldBuilder/src/WorldBuilder.cpp +++ b/GeneralsMD/Code/Tools/WorldBuilder/src/WorldBuilder.cpp @@ -422,8 +422,8 @@ BOOL CWorldBuilderApp::InitInstance() DEBUG_ASSERTCRASH(!TheGlobalData->m_useHalfHeightMap, ("TheGlobalData->m_useHalfHeightMap : Don't use this setting in WB.")); TheWritableGlobalData->m_useHalfHeightMap = false; -#if defined(RTS_DEBUG) - // WB never uses the shroud. +#if ENABLE_CONFIGURABLE_SHROUD + // WB never uses the shroud. With shroud, terrain is black. TheWritableGlobalData->m_shroudOn = FALSE; #endif