Remove g_GUI usage in simulation2/*

This is the last remaining inclusion of a gui file in simulation2/.
This commit is contained in:
phosit
2025-11-04 09:14:18 +01:00
parent 153dfe7ef1
commit 03a5198ed3
14 changed files with 78 additions and 60 deletions
+2 -1
View File
@@ -431,7 +431,8 @@ void CGame::Update(const double deltaRealTime, bool doInterpolate)
// so just use the sim rate itself as the number of turns per frame.
size_t maxTurns = (size_t)m_SimRate;
if (m_TurnManager->Update(deltaSimTime, maxTurns))
if (m_TurnManager->Update(deltaSimTime, maxTurns,
std::bind_front(&CGUIManager::SendEventToAll, g_GUI)))
{
{
PROFILE3("gui sim update");