Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Robosturm committed Oct 16, 2023
1 parent 03ff67e commit f5df05f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions game/actionperformer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
{
Expand Down Expand Up @@ -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();
Expand All @@ -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
Expand Down

0 comments on commit f5df05f

Please sign in to comment.