Skip to content

Commit e61cef2

Browse files
authored
[GEN][ZH] Pause replay on CRC mismatch (#876)
1 parent 147e944 commit e61cef2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,9 @@ void RecorderClass::handleCRCMessage(UnsignedInt newCRC, Int playerIndex, Bool f
10411041
// the mismatch first happened in case the NetCRCInterval is set to 1 during the game.
10421042
DEBUG_CRASH(("Replay has gone out of sync! All bets are off!\nInGame:%8.8X Replay:%8.8X\nFrame:%d",
10431043
playbackCRC, newCRC, TheGameLogic->getFrame()-m_crcInfo->GetQueueSize()-1));
1044+
1045+
// TheSuperHackers @tweak Pause the game on mismatch.
1046+
TheGameLogic->setGamePaused(true);
10441047
}
10451048
return;
10461049
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,9 @@ void RecorderClass::handleCRCMessage(UnsignedInt newCRC, Int playerIndex, Bool f
10441044
// the mismatch first happened in case the NetCRCInterval is set to 1 during the game.
10451045
DEBUG_CRASH(("Replay has gone out of sync! All bets are off!\nInGame:%8.8X Replay:%8.8X\nFrame:%d",
10461046
playbackCRC, newCRC, TheGameLogic->getFrame()-m_crcInfo->GetQueueSize()-1));
1047+
1048+
// TheSuperHackers @tweak Pause the game on mismatch.
1049+
TheGameLogic->setGamePaused(true);
10471050
}
10481051
return;
10491052
}

0 commit comments

Comments
 (0)