1
0
forked from mirrors/0ad

Add a Dev Overlay checkbox to activate RejoinTest from the session.

This makes this feature, very useful for checking for OOS, more easily
accessible.

Differential Revision: https://code.wildfiregames.com/D3199
This was SVN commit r24407.
This commit is contained in:
wraitii
2020-12-17 17:53:13 +00:00
parent e22a915351
commit 82d079d06c
5 changed files with 67 additions and 4 deletions
+8
View File
@@ -898,6 +898,14 @@ bool CSimulation2::DeserializeState(std::istream& stream)
return m->m_ComponentManager.DeserializeState(stream);
}
void CSimulation2::ActivateRejoinTest(int turn)
{
if (m->m_RejoinTestTurn != -1)
return;
LOGMESSAGERENDER("Rejoin test will activate in %i turns", turn - m->m_TurnNumber);
m->m_RejoinTestTurn = turn;
}
std::string CSimulation2::GenerateSchema()
{
return m->m_ComponentManager.GenerateSchema();