Support testing rejoins on turn 0, refs #3460, #4242, #5185, #5162, 2bf1dbfd13

Differential Revision: https://code.wildfiregames.com/D1522
This was SVN commit r22998.
This commit is contained in:
elexis 2019-09-26 12:09:19 +00:00
parent 23543383e3
commit fc08fe60ab
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ void CReplayPlayer::Replay(const bool serializationtest, const int rejointesttur
g_Game = new CGame(false);
if (serializationtest)
g_Game->GetSimulation2()->EnableSerializationTest();
if (rejointestturn > 0)
if (rejointestturn >= 0)
g_Game->GetSimulation2()->EnableRejoinTest(rejointestturn);
if (ooslog)
g_Game->GetSimulation2()->EnableOOSLog();

View File

@ -67,7 +67,7 @@ public:
CFG_GET_VAL("ooslog", m_EnableOOSLog);
CFG_GET_VAL("serializationtest", m_EnableSerializationTest);
CFG_GET_VAL("rejointest", m_RejoinTestTurn);
if (m_RejoinTestTurn <= 0) // Handle bogus values of the arg
if (m_RejoinTestTurn < 0) // Handle bogus values of the arg
m_RejoinTestTurn = -1;
}