File tree Expand file tree Collapse file tree 2 files changed +6
-30
lines changed
GeneralsMD/Code/GameEngine/Source/Common
Generals/Code/GameEngine/Source/Common Expand file tree Collapse file tree 2 files changed +6
-30
lines changed Original file line number Diff line number Diff line change @@ -1306,16 +1306,6 @@ void RecorderClass::appendNextCommand() {
1306
1306
}
1307
1307
1308
1308
GameMessage *msg = newInstance (GameMessage)(type);
1309
- if (type == GameMessage::MSG_BEGIN_NETWORK_MESSAGES || type == GameMessage::MSG_CLEAR_GAME_DATA)
1310
- {
1311
- }
1312
- else
1313
- {
1314
- if (!m_doingAnalysis)
1315
- {
1316
- TheCommandList->appendMessage (msg);
1317
- }
1318
- }
1319
1309
1320
1310
#ifdef DEBUG_LOGGING
1321
1311
AsciiString commandName = msg->getCommandAsAsciiString ();
@@ -1387,13 +1377,11 @@ void RecorderClass::appendNextCommand() {
1387
1377
}
1388
1378
}
1389
1379
1390
- if (type == GameMessage::MSG_CLEAR_GAME_DATA || type == GameMessage::MSG_BEGIN_NETWORK_MESSAGES )
1380
+ if (type != GameMessage::MSG_BEGIN_NETWORK_MESSAGES && type != GameMessage::MSG_CLEAR_GAME_DATA && !m_doingAnalysis )
1391
1381
{
1392
- deleteInstance (msg);
1393
- msg = NULL ;
1382
+ TheCommandList->appendMessage (msg);
1394
1383
}
1395
-
1396
- if (m_doingAnalysis)
1384
+ else
1397
1385
{
1398
1386
deleteInstance (msg);
1399
1387
msg = NULL ;
Original file line number Diff line number Diff line change @@ -1309,16 +1309,6 @@ void RecorderClass::appendNextCommand() {
1309
1309
}
1310
1310
1311
1311
GameMessage *msg = newInstance (GameMessage)(type);
1312
- if (type == GameMessage::MSG_BEGIN_NETWORK_MESSAGES || type == GameMessage::MSG_CLEAR_GAME_DATA)
1313
- {
1314
- }
1315
- else
1316
- {
1317
- if (!m_doingAnalysis)
1318
- {
1319
- TheCommandList->appendMessage (msg);
1320
- }
1321
- }
1322
1312
1323
1313
#ifdef DEBUG_LOGGING
1324
1314
AsciiString commandName = msg->getCommandAsAsciiString ();
@@ -1390,13 +1380,11 @@ void RecorderClass::appendNextCommand() {
1390
1380
}
1391
1381
}
1392
1382
1393
- if (type == GameMessage::MSG_CLEAR_GAME_DATA || type == GameMessage::MSG_BEGIN_NETWORK_MESSAGES )
1383
+ if (type != GameMessage::MSG_BEGIN_NETWORK_MESSAGES && type != GameMessage::MSG_CLEAR_GAME_DATA && !m_doingAnalysis )
1394
1384
{
1395
- deleteInstance (msg);
1396
- msg = NULL ;
1385
+ TheCommandList->appendMessage (msg);
1397
1386
}
1398
-
1399
- if (m_doingAnalysis)
1387
+ else
1400
1388
{
1401
1389
deleteInstance (msg);
1402
1390
msg = NULL ;
You can’t perform that action at this time.
0 commit comments