forked from 0ad/0ad
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:
parent
23543383e3
commit
fc08fe60ab
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user