From f5df05f02b9716474a8320501dafac01b0299ad6 Mon Sep 17 00:00:00 2001 From: Robosturm Date: Mon, 16 Oct 2023 16:36:58 +0200 Subject: [PATCH] #1704 --- game/actionperformer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/game/actionperformer.cpp b/game/actionperformer.cpp index e90119f75..58e49725f 100644 --- a/game/actionperformer.cpp +++ b/game/actionperformer.cpp @@ -56,6 +56,7 @@ void ActionPerformer::performAction(spGameAction pGameAction, bool fromAiPipe) { m_pMenu->setSaveAllowed(false); } + Mainapp::getInstance()->pauseRendering(); if (m_multiplayerSyncData.m_waitingForSyncFinished && m_pMenu != nullptr) { m_multiplayerSyncData.m_postSyncAction = pGameAction; @@ -72,7 +73,6 @@ void ActionPerformer::performAction(spGameAction pGameAction, bool fromAiPipe) CONSOLE_PRINT("GameMenue::performAction " + pGameAction->getActionID() + " at X: " + QString::number(pGameAction->getTarget().x()) + " at Y: " + QString::number(pGameAction->getTarget().y()) + " is proxy ai " + QString::number(proxyAi), GameConsole::eDEBUG); - Mainapp::getInstance()->pauseRendering(); bool multiplayer = false; if (m_pMenu != nullptr) { @@ -170,6 +170,7 @@ void ActionPerformer::performAction(spGameAction pGameAction, bool fromAiPipe) baseGameInput->centerCameraOnAction(pGameAction.get()); } pGameAction->perform(); + m_pMap->getGameRules()->createFogVision(); // clean up the action m_pCurrentAction = pGameAction; pGameAction.reset(); @@ -186,8 +187,8 @@ void ActionPerformer::performAction(spGameAction pGameAction, bool fromAiPipe) m_pMenu->autoSaveMap(); } } - Mainapp::getInstance()->continueRendering(); } + Mainapp::getInstance()->continueRendering(); } bool ActionPerformer::requiresForwarding(const spGameAction & pGameAction) const