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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user