Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: source/network/NetTurnManager.cpp
- ===================================================================
- --- source/network/NetTurnManager.cpp (revision 16895)
- +++ source/network/NetTurnManager.cpp (working copy)
- @@ -547,10 +547,13 @@
- {
- JS::RootedValue command(m_Simulation2.GetScriptInterface().GetContext());
- m_Simulation2.GetScriptInterface().ParseJSON(pair.second, &command);
- AddCommand(m_ClientId, pair.first, command, m_CurrentTurn + 1);
- }
- +
- + if (turn == m_FinalReplayTurn)
- + g_GUI->SendEventToAll("ReplayFinished");
- }
- CNetServerTurnManager::CNetServerTurnManager(CNetServerWorker& server) :
- m_NetServer(server), m_ReadyTurn(1), m_TurnLength(DEFAULT_TURN_LENGTH_MP)
- {
- Index: source/ps/Game.cpp
- ===================================================================
- --- source/ps/Game.cpp (revision 16895)
- +++ source/ps/Game.cpp (working copy)
- @@ -389,16 +388,14 @@
- {
- {
- PROFILE3("gui sim update");
- g_GUI->SendEventToAll("SimulationUpdate");
- }
- - if (m_IsReplay && m_TurnManager->GetCurrentTurn() == m_FinalReplayTurn - 1)
- - g_GUI->SendEventToAll("ReplayFinished");
- GetView()->GetLOSTexture().MakeDirty();
- }
- -
- +
- if (CRenderer::IsInitialised())
- g_Renderer.GetTimeManager().Update(deltaSimTime);
- }
- if (doInterpolate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement