Skip to content

Commit 318f061

Browse files
committed
manually clear out extra lines near where we removed comments
1 parent 14a7ef0 commit 318f061

File tree

19 files changed

+5
-46
lines changed

19 files changed

+5
-46
lines changed

Core/GameEngine/Source/Common/Audio/GameAudio.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ AudioManager::AudioManager() :
165165
m_systemSoundVolume = 0.0f;
166166
m_systemSpeechVolume = 0.0f;
167167
m_volumeHasChanged = FALSE;
168-
169168
m_listenerOrientation.set(0.0, 1.0, 0.0);
170169
theAudioHandlePool = AHSV_FirstHandle;
171170
m_audioSettings = NEW AudioSettings;

Core/GameEngine/Source/GameNetwork/FirewallHelper.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ FirewallHelperClass::FirewallHelperClass(void)
8989
m_packetID = 0;
9090
m_timeoutLength = 0;
9191
m_timeoutStart = 0;
92-
9392
m_behavior = FIREWALL_TYPE_UNKNOWN;
9493
m_lastBehavior = FIREWALL_TYPE_UNKNOWN;
9594
m_sourcePortAllocationDelta = 0;

Core/GameEngine/Source/GameNetwork/GameSpy/PeerDefs.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ void GameSpyInfo::reset( void )
8888
m_localName = "";
8989
m_localProfileID = 0;
9090
m_maxMessagesPerUpdate = 100;
91-
9291
m_disallowAsainText = FALSE;
9392
m_disallowNonAsianText = FALSE;
9493
m_disconReason = 0;
@@ -98,14 +97,10 @@ void GameSpyInfo::reset( void )
9897
m_pingString.clear();
9998
m_rawConfig.clear();
10099
m_rawMotd.clear();
101-
102100
m_internalIP = m_externalIP = 0;
103-
104101
m_savedIgnoreMap.clear();
105102
m_preorderPlayers.clear();
106-
107103
m_cachedLocalPlayerStats.reset();
108-
109104
m_additionalDisconnects = -1;
110105
}
111106

Core/GameEngine/Source/GameNetwork/GameSpy/Thread/PeerThread.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class PeerThreadClass : public ThreadClass
180180
PeerThreadClass() : ThreadClass()
181181
{
182182
m_roomJoined = m_allowObservers = m_hasPassword = FALSE;
183-
m_useStats = TRUE;
183+
m_useStats = TRUE;
184184
m_exeCRC = m_iniCRC = 0;
185185
m_gameVersion = 0;
186186
m_ladderPort = 0;
@@ -198,13 +198,11 @@ class PeerThreadClass : public ThreadClass
198198
for (Int i=0; i<MAX_SLOTS; ++i)
199199
{
200200
m_playerNames[i] = "";
201-
202201
m_playerColors[i] = 0;
203202
m_playerFactions[i] = 0;
204203
m_playerLosses[i] = 0;
205204
m_playerProfileID[i] = 0;
206205
m_playerWins[i] = 0;
207-
208206
}
209207
}
210208

Core/GameEngine/Source/GameNetwork/GameSpy/Thread/PersistentStorageThread.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,6 @@ void PSPlayerStats::reset( void )
11071107
desyncsInARow = 0;
11081108
maxDesyncsInARow = 0;
11091109
lastLadderPort = 0;
1110-
11111110
maxQMwinsInARow = 0;
11121111
QMwinsInARow = 0;
11131112
}

Core/GameEngine/Source/GameNetwork/NAT.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ NAT::NAT()
162162
m_transport = NULL;
163163
m_slotList = NULL;
164164
m_roundTimeout = 0;
165-
166165
m_maxNumRetriesAllowed = 10;
167166
m_packetID = 0x7f00;
168167
}

Core/GameEngine/Source/GameNetwork/NetCommandMsg.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ NetCommandMsg::NetCommandMsg()
3838
m_executionFrame = 0;
3939
m_id = 0;
4040
m_playerID = 0;
41-
4241
m_timestamp = 0;
4342
m_referenceCount = 1; // start this off as 1. This means that an "attach" is implied by creating a NetCommandMsg object.
4443
m_commandType = NETCOMMANDTYPE_UNKNOWN;
@@ -89,7 +88,6 @@ Int NetCommandMsg::getSortNumber() {
8988
NetGameCommandMsg::NetGameCommandMsg() : NetCommandMsg() {
9089
m_argSize = 0;
9190
m_numArgs = 0;
92-
9391
m_type = (GameMessage::Type)0;
9492
m_commandType = NETCOMMANDTYPE_GAMECOMMAND;
9593
m_argList = NULL;
@@ -881,9 +879,7 @@ UnsignedInt NetWrapperCommandMsg::getTotalDataLength() {
881879

882880
void NetWrapperCommandMsg::setTotalDataLength(UnsignedInt totalDataLength) {
883881
m_totalDataLength = totalDataLength;
884-
}
885-
886-
UnsignedShort NetWrapperCommandMsg::getWrappedCommandID() {
882+
return sizeof(NetPacketChatCommand) + sizeof(UnsignedByte) /* text length byte */ + m_text.getByteCount()
887883
return m_wrappedCommandID;
888884
}
889885

@@ -892,8 +888,7 @@ void NetWrapperCommandMsg::setWrappedCommandID(UnsignedShort wrappedCommandID) {
892888
}
893889

894890
//-------------------------
895-
// NetFileCommandMsg
896-
//-------------------------
891+
return sizeof(NetPacketDisconnectChatCommand) + sizeof(UnsignedByte) /* text length byte */
897892
NetFileCommandMsg::NetFileCommandMsg() : NetCommandMsg() {
898893
m_commandType = NETCOMMANDTYPE_FILE;
899894
m_data = NULL;

Core/GameEngine/Source/GameNetwork/Network.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ Network::Network()
270270
m_frameDataReady = FALSE;
271271
m_isStalling = FALSE;
272272
m_sawCRCMismatch = FALSE;
273-
274273
m_conMgr = NULL;
275274
m_messageWindow = NULL;
276275

Generals/Code/GameEngine/Include/Common/Geometry.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ class GeometryInfo : public Snapshot
113113
{
114114
m_boundingCircleRadius = 0.0f;
115115
m_boundingSphereRadius = 0.0f;
116-
117116
set(type, isSmall, height, majorRadius, minorRadius);
118117
}
119118

Generals/Code/GameEngine/Include/Common/INI.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ class MultiIniFieldParse
140140
{
141141
for(Int i = 0; i < MAX_MULTI_FIELDS; i++)
142142
m_extraOffset[i] = 0;
143-
144143
}
145144

146145
void add(const FieldParse* f, UnsignedInt e = 0);

0 commit comments

Comments
 (0)