Skip to content

Commit 79f8e9a

Browse files
committed
[GEN][ZH] Remove all RTS_INTERNAL epilogues (#1231)
1 parent 477be26 commit 79f8e9a

File tree

622 files changed

+0
-3117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

622 files changed

+0
-3117
lines changed

Core/GameEngine/Source/Common/System/Xfer.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@
3636
#include "Common/Xfer.h"
3737
#include "Common/BitFlagsIO.h"
3838

39-
#ifdef RTS_INTERNAL
40-
// for occasional debugging...
41-
//#pragma optimize("", off)
42-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
43-
#endif
4439

4540
//-------------------------------------------------------------------------------------------------
4641
//-------------------------------------------------------------------------------------------------

Core/Libraries/Source/Compression/CompressionManager.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@
3232
#include "EAC/huffcodex.h"
3333
#include "EAC/refcodex.h"
3434

35-
#ifdef RTS_INTERNAL
36-
// for occasional debugging...
37-
//#pragma optimize("", off)
38-
//#pragma message("************************************** WARNING, optimization disabled for debugging purposes")
39-
#endif
4035

4136
// TheSuperHackers @todo Recover debug logging in this file?
4237
#define DEBUG_LOG(x) {}

Core/Libraries/Source/Compression/LZHCompress/NoxCompress.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
#include "NoxCompress.h"
2727
#include "CompLibHeader/lzhl.h"
2828

29-
#ifdef RTS_INTERNAL
30-
// for occasional debugging...
31-
//#pragma optimize("", off)
32-
//#pragma message("************************************** WARNING, optimization disabled for debugging purposes")
33-
#endif
3429

3530
#define BLOCKSIZE 500000
3631
#define NoxRead fread

Core/Libraries/Source/WWVegas/WW3D2/render2dsentence.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@
4141
#include "wwmemlog.h"
4242
#include "dx8wrapper.h"
4343

44-
#ifdef RTS_INTERNAL
45-
// for occasional debugging...
46-
//#pragma optimize("", off)
47-
//#pragma message("************************************** WARNING, optimization disabled for debugging purposes")
48-
#endif
4944

5045
////////////////////////////////////////////////////////////////////////////////////
5146
// Local constants

Core/Libraries/Source/WWVegas/WW3D2/rendobj.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@
9393
#include "intersec.h"
9494

9595

96-
#ifdef RTS_INTERNAL
97-
// for occasional debugging...
98-
//#pragma optimize("", off)
99-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
100-
#endif
10196

10297
// Definitions of static members:
10398
const float RenderObjClass::AT_MIN_LOD = FLT_MAX;

Core/Libraries/Source/WWVegas/WW3D2/seglinerenderer.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@
6060
#define SEGLINE_CHUNK_SIZE (128)
6161
#endif
6262

63-
#ifdef RTS_INTERNAL
64-
// for occasional debugging...
65-
//#pragma optimize("", off)
66-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
67-
#endif
6863

6964
#define MAX_SEGLINE_POINT_BUFFER_SIZE (1 + SEGLINE_CHUNK_SIZE)
7065
// This macro depends on the assumption that each line segment is two polys.

Core/Libraries/Source/WWVegas/WW3D2/streakRender.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@
3535
#include "RANDOM.H"
3636
#include "v3_rnd.h"
3737

38-
#ifdef RTS_INTERNAL
39-
// for occasional debugging...
40-
// #pragma optimize("", off)
41-
// #pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
42-
#endif
4338

4439
/* We have chunking logic which handles N segments at a time. To simplify the subdivision logic,
4540
** we will ensure that N is a power of two and that N >= 2^MAX_STREAK_SUBDIV_LEVELS, so that the

Core/Tools/MapCacheBuilder/Source/WinMain.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@
110110

111111
// PRIVATE TYPES //////////////////////////////////////////////////////////////
112112

113-
#ifdef RTS_INTERNAL
114-
// for occasional debugging...
115-
//#pragma optimize("", off)
116-
//#pragma message("************************************** WARNING, optimization disabled for debugging purposes")
117-
#endif
118113

119114
// PRIVATE DATA ///////////////////////////////////////////////////////////////
120115

Generals/Code/GameEngine/Include/GameLogic/Module/JetAIUpdate.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@
3535
#include "GameLogic/AIStateMachine.h"
3636
#include "GameLogic/Module/AIUpdate.h"
3737

38-
#ifdef RTS_INTERNAL
39-
// for occasional debugging...
40-
//#pragma optimize("", off)
41-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
42-
#endif
4338

4439
//-------------------------------------------------------------------------------------------------
4540
//-------------------------------------------------------------------------------------------------

Generals/Code/GameEngine/Source/Common/Audio/AudioEventRTS.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@
5757
#include "GameClient/Drawable.h" // For getPosition
5858
#include "GameClient/GameClient.h" // For getDrawableByID
5959

60-
#ifdef RTS_INTERNAL
61-
//#pragma optimize("", off)
62-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
63-
#endif
6460

6561
//-------------------------------------------------------------------------------------------------
6662
AudioEventRTS::AudioEventRTS()

Generals/Code/GameEngine/Source/Common/Audio/GameAudio.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@
7171
#include "WWMath/matrix3d.h"
7272

7373
///////////////////////////////////////////////////////////////////////////////////////////////////
74-
#ifdef RTS_INTERNAL
75-
//#pragma optimize("", off)
76-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
77-
#endif
7874

7975
static const char* TheSpeakerTypes[] =
8076
{

Generals/Code/GameEngine/Source/Common/Audio/GameMusic.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@
5252
#include "Common/GameAudio.h"
5353
#include "Common/INI.h"
5454

55-
#ifdef RTS_INTERNAL
56-
//#pragma optimize("", off)
57-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
58-
#endif
5955

6056
//----------------------------------------------------------------------------
6157
// Externals

Generals/Code/GameEngine/Source/Common/Audio/GameSounds.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@
5656
#include "GameLogic/PartitionManager.h"
5757

5858
///////////////////////////////////////////////////////////////////////////////////////////////////
59-
#ifdef RTS_INTERNAL
60-
//#pragma optimize("", off)
61-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
62-
#endif
6359

6460
//-------------------------------------------------------------------------------------------------
6561
SoundManager::SoundManager()

Generals/Code/GameEngine/Source/Common/CRCDebug.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
#include "GameNetwork/IPEnumeration.h"
3434
#include <cstdarg>
3535

36-
#ifdef RTS_INTERNAL
37-
// for occasional debugging...
38-
//#pragma optimize("", off)
39-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
40-
#endif
4136

4237
#ifdef DEBUG_CRC
4338

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737
#include "GameNetwork/NetworkDefs.h"
3838
#include "trim.h"
3939

40-
#ifdef RTS_INTERNAL
41-
// for occasional debugging...
42-
//#pragma optimize("", off)
43-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
44-
#endif
4540

4641

4742

Generals/Code/GameEngine/Source/Common/GameEngine.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,6 @@
110110

111111
#include "Common/version.h"
112112

113-
#ifdef RTS_INTERNAL
114-
// for occasional debugging...
115-
//#pragma optimize("", off)
116-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
117-
#endif
118113

119114
//-------------------------------------------------------------------------------------------------
120115

Generals/Code/GameEngine/Source/Common/GameLOD.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@
4141
#define DEFINE_PARTICLE_SYSTEM_NAMES
4242
#include "GameClient/ParticleSys.h"
4343

44-
#ifdef RTS_INTERNAL
45-
// for occasional debugging...
46-
//#pragma optimize("", off)
47-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
48-
#endif
4944

5045
#define PROFILE_ERROR_LIMIT 0.94f //fraction of profiled result needed to get a match. Allows some room for error/fluctuation.
5146

Generals/Code/GameEngine/Source/Common/INI/INI.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@
5959
#include "GameLogic/ObjectCreationList.h"
6060
#include "GameLogic/Weapon.h"
6161

62-
#ifdef RTS_INTERNAL
63-
// for occasional debugging...
64-
//#pragma optimize("", off)
65-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
66-
#endif
6762

6863
///////////////////////////////////////////////////////////////////////////////////////////////////
6964
// PRIVATE DATA ///////////////////////////////////////////////////////////////////////////////////

Generals/Code/GameEngine/Source/Common/INI/INIMapCache.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@
3838
#include "Common/WellKnownKeys.h"
3939
#include "Common/QuotedPrintable.h"
4040

41-
#ifdef RTS_INTERNAL
42-
// for occasional debugging...
43-
//#pragma optimize("", off)
44-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
45-
#endif
4641

4742
class MapMetaDataReader
4843
{

Generals/Code/GameEngine/Source/Common/INI/INIWebpageURL.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@
3434
#include "Common/Registry.h"
3535
#include "GameNetwork/WOLBrowser/WebBrowser.h"
3636

37-
#ifdef RTS_INTERNAL
38-
// for occasional debugging...
39-
//#pragma optimize("", off)
40-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
41-
#endif
4237

4338
///////////////////////////////////////////////////////////////////////////////////////////////////
4439
// PRIVATE DATA ///////////////////////////////////////////////////////////////////////////////////

Generals/Code/GameEngine/Source/Common/MessageStream.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ CommandList *TheCommandList = NULL;
4242

4343

4444

45-
#ifdef RTS_INTERNAL
46-
// for occasional debugging...
47-
//#pragma optimize("", off)
48-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
49-
#endif
5045

5146

5247

Generals/Code/GameEngine/Source/Common/PerfTimer.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@
3636
#include "GameClient/GraphDraw.h"
3737

3838

39-
#ifdef RTS_INTERNAL
40-
// for occasional debugging...
41-
//#pragma optimize("", off)
42-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
43-
#endif
4439

4540
//-------------------------------------------------------------------------------------------------
4641
//-------------------------------------------------------------------------------------------------

Generals/Code/GameEngine/Source/Common/RTS/ActionManager.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@
6464

6565
#include "GameLogic/ExperienceTracker.h"//LORENZEN
6666

67-
#ifdef RTS_INTERNAL
68-
// for occasional debugging...
69-
//#pragma optimize("", off)
70-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
71-
#endif
7267

7368
// GLOBAL /////////////////////////////////////////////////////////////////////////////////////////
7469
ActionManager *TheActionManager = NULL;

Generals/Code/GameEngine/Source/Common/RTS/Energy.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@
5151
#include "Common/Xfer.h"
5252
#include "GameLogic/Object.h"
5353

54-
#ifdef RTS_INTERNAL
55-
// for occasional debugging...
56-
//#pragma optimize("", off)
57-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
58-
#endif
5954

6055
//-----------------------------------------------------------------------------
6156
Energy::Energy()

Generals/Code/GameEngine/Source/Common/RTS/Player.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@
9999
#include "GameLogic/VictoryConditions.h"
100100

101101

102-
#ifdef RTS_INTERNAL
103-
// for occasional debugging...
104-
//#pragma optimize("", off)
105-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
106-
#endif
107102

108103
//Grey for neutral.
109104
#define NEUTRAL_PLAYER_COLOR 0xffffffff

Generals/Code/GameEngine/Source/Common/RTS/PlayerList.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@
6060
#include "GameLogic/SidesList.h"
6161
#include "GameNetwork/NetworkDefs.h"
6262

63-
#ifdef RTS_INTERNAL
64-
// for occasional debugging...
65-
//#pragma optimize("", off)
66-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
67-
#endif
6863

6964
//-----------------------------------------------------------------------------
7065
/*extern*/ PlayerList *ThePlayerList = NULL;

Generals/Code/GameEngine/Source/Common/RTS/PlayerTemplate.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@
5353
#include "Common/Science.h"
5454
#include "GameClient/Image.h"
5555

56-
#ifdef RTS_INTERNAL
57-
// for occasional debugging...
58-
//#pragma optimize("", off)
59-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
60-
#endif
6156

6257
///////////////////////////////////////////////////////////////////////////////////////////////////
6358
// PRIVATE DATA ///////////////////////////////////////////////////////////////////////////////////

Generals/Code/GameEngine/Source/Common/RTS/ProductionPrerequisite.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@
5252
#include "GameClient/Drawable.h"
5353
#include "GameClient/GameText.h"
5454

55-
#ifdef RTS_INTERNAL
56-
// for occasional debugging...
57-
//#pragma optimize("", off)
58-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
59-
#endif
6055

6156
//-----------------------------------------------------------------------------
6257
ProductionPrerequisite::ProductionPrerequisite()

Generals/Code/GameEngine/Source/Common/RTS/Science.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@
3535

3636
ScienceStore* TheScienceStore = NULL;
3737

38-
#ifdef RTS_INTERNAL
39-
// for occasional debugging...
40-
//#pragma optimize("", off)
41-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
42-
#endif
4338

4439
//-----------------------------------------------------------------------------
4540
void ScienceStore::init()

Generals/Code/GameEngine/Source/Common/RTS/SpecialPower.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737
#include "GameLogic/Object.h"
3838
#include "Common/BitFlagsIO.h"
3939

40-
#ifdef RTS_INTERNAL
41-
// for occasional debugging...
42-
//#pragma optimize("", off)
43-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
44-
#endif
4540

4641
// GLOBAL /////////////////////////////////////////////////////////////////////////////////////////
4742
SpecialPowerStore *TheSpecialPowerStore = NULL;

Generals/Code/GameEngine/Source/Common/RTS/Team.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@
5151
#include "GameLogic/ScriptActions.h"
5252
#include "GameLogic/ScriptEngine.h"
5353

54-
#ifdef RTS_INTERNAL
55-
// for occasional debugging...
56-
//#pragma optimize("", off)
57-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
58-
#endif
5954

6055
///@todo - do delayed script evaluations for team scripts. jba.
6156

Generals/Code/GameEngine/Source/Common/RandomValue.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737

3838
//#define DETERMINISTIC // to allow repetition for debugging
3939

40-
#ifdef RTS_INTERNAL
41-
// for occasional debugging...
42-
//#pragma optimize("", off)
43-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
44-
#endif
4540

4641
#undef DEBUG_RANDOM_CLIENT
4742
#undef DEBUG_RANDOM_LOGIC

Generals/Code/GameEngine/Source/Common/Recorder.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@
4646
#include "Common/CRCDebug.h"
4747
#include "Common/version.h"
4848

49-
#ifdef RTS_INTERNAL
50-
// for occasional debugging...
51-
//#pragma optimize("", off)
52-
//#pragma MESSAGE("************************************** WARNING, optimization disabled for debugging purposes")
53-
#endif
5449

5550
Int REPLAY_CRC_INTERVAL = 100;
5651

0 commit comments

Comments
 (0)