Skip to content

[GEN][ZH] Fix black terrain in World Builder without RTS_DEBUG #1190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Core/GameEngine/Include/Common/GameDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,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

// Originally the configurable shroud sat behind #if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
// 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
1 change: 1 addition & 0 deletions Generals/Code/GameEngine/Include/Common/GameCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

// ----------------------------------------------------------------------------------------------
#include "Lib/BaseType.h"
#include "Common/GameDefines.h"

// ----------------------------------------------------------------------------------------------
#if defined(RTS_INTERNAL) || defined(RTS_DEBUG)
Expand Down
5 changes: 3 additions & 2 deletions Generals/Code/GameEngine/Include/Common/GlobalData.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 ENABLE_CONFIGURABLE_SHROUD
Bool m_shroudOn;
#endif

#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
Bool m_wireframe;
Bool m_stateMachineDebug;
Bool m_useCameraConstraints;
Bool m_specialPowerUsesDelay;
Bool m_shroudOn;
Bool m_fogOfWarOn;
Bool m_jabberOn;
Bool m_munkeeOn;
Expand Down
1 change: 0 additions & 1 deletion Generals/Code/GameEngine/Include/Precompiled/PreRTS.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 6 additions & 2 deletions Generals/Code/GameEngine/Source/Common/CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ Int parseNoFX(char *args[], int)
return 1;
}

#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD && (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
Int parseNoShroud(char *args[], int)
{
TheWritableGlobalData->m_shroudOn = FALSE;
Expand Down Expand Up @@ -1244,6 +1244,11 @@ static CommandLineParam paramsForEngineInit[] =
// Number of frames between each CRC that is written to replay files in singleplayer games.
{ "-ReplayCRCInterval", parseReplayCRCInterval },
#endif

#if ENABLE_CONFIGURABLE_SHROUD && (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
{ "-noshroud", parseNoShroud },
#endif

#if (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
{ "-saveAllStats", parseSaveAllStats },
{ "-noDraw", parseNoDraw },
Expand Down Expand Up @@ -1282,7 +1287,6 @@ static CommandLineParam paramsForEngineInit[] =
{ "-vTune", parseVTune },
{ "-selectTheUnselectable", parseSelectAll },
{ "-RunAhead", parseRunAhead },
{ "-noshroud", parseNoShroud },
{ "-forceBenchmark", parseForceBenchmark },
{ "-buildmapcache", parseBuildMapCache },
{ "-noshadowvolumes", parseNoShadows },
Expand Down
10 changes: 8 additions & 2 deletions Generals/Code/GameEngine/Source/Common/GlobalData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@ GlobalData* GlobalData::m_theOriginal = NULL;
{ "KeyboardCameraRotateSpeed", INI::parseReal, NULL, offsetof( GlobalData, m_keyboardCameraRotateSpeed ) },
{ "PlayStats", INI::parseInt, NULL, offsetof( GlobalData, m_playStats ) },

#if ENABLE_CONFIGURABLE_SHROUD && (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
{ "ShroudOn", INI::parseBool, NULL, offsetof( GlobalData, m_shroudOn ) },
#endif

#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
{ "DisableCameraFade", INI::parseBool, NULL, offsetof( GlobalData, m_disableCameraFade ) },
{ "DisableScriptedInputDisabling", INI::parseBool, NULL, offsetof( GlobalData, m_disableScriptedInputDisabling ) },
Expand All @@ -497,7 +501,6 @@ GlobalData* GlobalData::m_theOriginal = NULL;
{ "Wireframe", INI::parseBool, NULL, offsetof( GlobalData, m_wireframe ) },
{ "StateMachineDebug", INI::parseBool, NULL, offsetof( GlobalData, m_stateMachineDebug ) },
{ "UseCameraConstraints", INI::parseBool, NULL, offsetof( GlobalData, m_useCameraConstraints ) },
{ "ShroudOn", INI::parseBool, NULL, offsetof( GlobalData, m_shroudOn ) },
{ "FogOfWarOn", INI::parseBool, NULL, offsetof( GlobalData, m_fogOfWarOn ) },
{ "ShowCollisionExtents", INI::parseBool, NULL, offsetof( GlobalData, m_showCollisionExtents ) },
{ "ShowAudioLocations", INI::parseBool, NULL, offsetof( GlobalData, m_showAudioLocations ) },
Expand Down Expand Up @@ -545,11 +548,14 @@ GlobalData::GlobalData()

m_TiVOFastMode = FALSE;

#if ENABLE_CONFIGURABLE_SHROUD
m_shroudOn = TRUE;
#endif

#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
m_wireframe = 0;
m_stateMachineDebug = FALSE;
m_useCameraConstraints = TRUE;
m_shroudOn = TRUE;
m_fogOfWarOn = FALSE;
m_jabberOn = FALSE;
m_munkeeOn = FALSE;
Expand Down
4 changes: 2 additions & 2 deletions Generals/Code/GameEngine/Source/GameClient/GameClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ void GameClient::update( void )

if (!freezeTime)
{
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (TheGlobalData->m_shroudOn)
#else
if (true)
Expand Down Expand Up @@ -650,7 +650,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) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (TheGlobalData->m_shroudOn)
#else
if (true)
Expand Down
2 changes: 1 addition & 1 deletion Generals/Code/GameEngine/Source/GameClient/InGameUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2488,7 +2488,7 @@ void InGameUI::createCommandHint( const GameMessage *msg )
{
const Object* obj = draw->getObject();
Int localPlayerIndex = ThePlayerList ? ThePlayerList->getLocalPlayer()->getPlayerIndex() : 0;
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
ObjectShroudStatus ss = (!obj || !TheGlobalData->m_shroudOn) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex);
#else
ObjectShroudStatus ss = (!obj) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ void W3DRadar::buildTerrainTexture( TerrainLogic *terrain )
//-------------------------------------------------------------------------------------------------
void W3DRadar::clearShroud()
{
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (!TheGlobalData->m_shroudOn)
return;
#endif
Expand All @@ -1287,7 +1287,7 @@ void W3DRadar::clearShroud()
//-------------------------------------------------------------------------------------------------
void W3DRadar::setShroudLevel(Int shroudX, Int shroudY, CellShroudStatus setting)
{
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (!TheGlobalData->m_shroudOn)
return;
#endif
Expand Down Expand Up @@ -1424,7 +1424,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) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if( TheGlobalData->m_shroudOn )
#else
if (true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ RTS3DScene::RTS3DScene()
m_scratchLight = NEW_REF( LightClass, (LightClass::DIRECTIONAL) );
// REF_PTR_SET(m_globalLight[lightIndex], pLight);

#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (TheGlobalData->m_shroudOn)
m_shroudMaterialPass = NEW_REF(W3DShroudMaterialPassClass,());
else
Expand Down Expand Up @@ -758,7 +758,7 @@ void RTS3DScene::renderOneObject(RenderInfoClass &rinfo, RenderObjClass *robj, I

if (drawInfo)
{
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (!TheGlobalData->m_shroudOn)
ss = OBJECTSHROUD_CLEAR;
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ static void drawablePostDraw( Drawable *draw, void *userData )

Object* obj = draw->getObject();
Int localPlayerIndex = ThePlayerList ? ThePlayerList->getLocalPlayer()->getPlayerIndex() : 0;
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
ObjectShroudStatus ss = (!obj || !TheGlobalData->m_shroudOn) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex);
#else
ObjectShroudStatus ss = (!obj) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex);
Expand Down
4 changes: 2 additions & 2 deletions Generals/Code/Tools/WorldBuilder/src/WorldBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,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) || defined(RTS_INTERNAL)
// WB never uses the shroud.
#if ENABLE_CONFIGURABLE_SHROUD
// WB never uses the shroud. With shroud, terrain is black.
TheWritableGlobalData->m_shroudOn = FALSE;
#endif

Expand Down
1 change: 1 addition & 0 deletions GeneralsMD/Code/GameEngine/Include/Common/GameCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

// ----------------------------------------------------------------------------------------------
#include "Lib/BaseType.h"
#include "Common/GameDefines.h"

// ----------------------------------------------------------------------------------------------
#if defined(RTS_INTERNAL) || defined(RTS_DEBUG)
Expand Down
6 changes: 3 additions & 3 deletions GeneralsMD/Code/GameEngine/Include/Common/GlobalData.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 ///////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -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 ENABLE_CONFIGURABLE_SHROUD
Bool m_shroudOn;
#endif

#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
Bool m_wireframe;
Bool m_stateMachineDebug;
Bool m_useCameraConstraints;
Bool m_shroudOn;
Bool m_fogOfWarOn;
Bool m_jabberOn;
Bool m_munkeeOn;
Expand Down
1 change: 0 additions & 1 deletion GeneralsMD/Code/GameEngine/Include/Precompiled/PreRTS.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 6 additions & 2 deletions GeneralsMD/Code/GameEngine/Source/Common/CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ Int parseNoFX(char *args[], int)
return 1;
}

#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD && (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
Int parseNoShroud(char *args[], int)
{
TheWritableGlobalData->m_shroudOn = FALSE;
Expand Down Expand Up @@ -1244,6 +1244,11 @@ static CommandLineParam paramsForEngineInit[] =
// Number of frames between each CRC that is written to replay files in singleplayer games.
{ "-ReplayCRCInterval", parseReplayCRCInterval },
#endif

#if ENABLE_CONFIGURABLE_SHROUD && (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
{ "-noshroud", parseNoShroud },
#endif

#if (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
{ "-saveAllStats", parseSaveAllStats },
{ "-noDraw", parseNoDraw },
Expand Down Expand Up @@ -1282,7 +1287,6 @@ static CommandLineParam paramsForEngineInit[] =
{ "-vTune", parseVTune },
{ "-selectTheUnselectable", parseSelectAll },
{ "-RunAhead", parseRunAhead },
{ "-noshroud", parseNoShroud },
{ "-forceBenchmark", parseForceBenchmark },
{ "-buildmapcache", parseBuildMapCache },
{ "-noshadowvolumes", parseNoShadows },
Expand Down
10 changes: 8 additions & 2 deletions GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@ GlobalData* GlobalData::m_theOriginal = NULL;
{ "KeyboardCameraRotateSpeed", INI::parseReal, NULL, offsetof( GlobalData, m_keyboardCameraRotateSpeed ) },
{ "PlayStats", INI::parseInt, NULL, offsetof( GlobalData, m_playStats ) },

#if ENABLE_CONFIGURABLE_SHROUD && (defined(RTS_DEBUG) || defined(RTS_INTERNAL))
{ "ShroudOn", INI::parseBool, NULL, offsetof( GlobalData, m_shroudOn ) },
#endif

#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
{ "DisableCameraFade", INI::parseBool, NULL, offsetof( GlobalData, m_disableCameraFade ) },
{ "DisableScriptedInputDisabling", INI::parseBool, NULL, offsetof( GlobalData, m_disableScriptedInputDisabling ) },
Expand All @@ -497,7 +501,6 @@ GlobalData* GlobalData::m_theOriginal = NULL;
{ "Wireframe", INI::parseBool, NULL, offsetof( GlobalData, m_wireframe ) },
{ "StateMachineDebug", INI::parseBool, NULL, offsetof( GlobalData, m_stateMachineDebug ) },
{ "UseCameraConstraints", INI::parseBool, NULL, offsetof( GlobalData, m_useCameraConstraints ) },
{ "ShroudOn", INI::parseBool, NULL, offsetof( GlobalData, m_shroudOn ) },
{ "FogOfWarOn", INI::parseBool, NULL, offsetof( GlobalData, m_fogOfWarOn ) },
{ "ShowCollisionExtents", INI::parseBool, NULL, offsetof( GlobalData, m_showCollisionExtents ) },
{ "ShowAudioLocations", INI::parseBool, NULL, offsetof( GlobalData, m_showAudioLocations ) },
Expand Down Expand Up @@ -548,11 +551,14 @@ GlobalData::GlobalData()
#endif
m_TiVOFastMode = FALSE;

#if ENABLE_CONFIGURABLE_SHROUD
m_shroudOn = TRUE;
#endif

#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
m_wireframe = 0;
m_stateMachineDebug = FALSE;
m_useCameraConstraints = TRUE;
m_shroudOn = TRUE;
m_fogOfWarOn = FALSE;
m_jabberOn = FALSE;
m_munkeeOn = FALSE;
Expand Down
4 changes: 2 additions & 2 deletions GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ void GameClient::update( void )

if (!freezeTime)
{
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (TheGlobalData->m_shroudOn)
#else
if (true)
Expand Down Expand Up @@ -688,7 +688,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) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (TheGlobalData->m_shroudOn)
#else
if (true)
Expand Down
2 changes: 1 addition & 1 deletion GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2548,7 +2548,7 @@ void InGameUI::createCommandHint( const GameMessage *msg )
{
const Object* obj = draw->getObject();
Int localPlayerIndex = ThePlayerList ? ThePlayerList->getLocalPlayer()->getPlayerIndex() : 0;
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
ObjectShroudStatus ss = (!obj || !TheGlobalData->m_shroudOn) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex);
#else
ObjectShroudStatus ss = (!obj) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ void W3DRadar::buildTerrainTexture( TerrainLogic *terrain )
//-------------------------------------------------------------------------------------------------
void W3DRadar::clearShroud()
{
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (!TheGlobalData->m_shroudOn)
return;
#endif
Expand All @@ -1275,7 +1275,7 @@ void W3DRadar::clearShroud()
//-------------------------------------------------------------------------------------------------
void W3DRadar::setShroudLevel(Int shroudX, Int shroudY, CellShroudStatus setting)
{
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (!TheGlobalData->m_shroudOn)
return;
#endif
Expand Down Expand Up @@ -1412,7 +1412,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) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if( TheGlobalData->m_shroudOn )
#else
if (true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ BaseHeightMapRenderObjClass::BaseHeightMapRenderObjClass(void)
#ifdef DO_ROADS
m_roadBuffer = NEW W3DRoadBuffer;
#endif
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (TheGlobalData->m_shroudOn)
m_shroud = NEW W3DShroud;
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ RTS3DScene::RTS3DScene()
m_scratchLight = NEW_REF( LightClass, (LightClass::DIRECTIONAL) );
// REF_PTR_SET(m_globalLight[lightIndex], pLight);

#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (TheGlobalData->m_shroudOn)
m_shroudMaterialPass = NEW_REF(W3DShroudMaterialPassClass,());
else
Expand Down Expand Up @@ -796,7 +796,7 @@ void RTS3DScene::renderOneObject(RenderInfoClass &rinfo, RenderObjClass *robj, I

if (drawInfo)
{
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
if (!TheGlobalData->m_shroudOn)
ss = OBJECTSHROUD_CLEAR;
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ static void drawablePostDraw( Drawable *draw, void *userData )

Object* obj = draw->getObject();
Int localPlayerIndex = ThePlayerList ? ThePlayerList->getLocalPlayer()->getPlayerIndex() : 0;
#if defined(RTS_DEBUG) || defined(RTS_INTERNAL)
#if ENABLE_CONFIGURABLE_SHROUD
ObjectShroudStatus ss = (!obj || !TheGlobalData->m_shroudOn) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex);
#else
ObjectShroudStatus ss = (!obj) ? OBJECTSHROUD_CLEAR : obj->getShroudedStatus(localPlayerIndex);
Expand Down
Loading
Loading