mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
forward declaration
This commit is contained in:
parent
049f90159d
commit
e18a4a09a9
@ -676,10 +676,10 @@ void CServerHandler::startCampaignScenario(HighScoreParameter param, std::shared
|
||||
if (!cs)
|
||||
{
|
||||
ourCampaign = si->campState;
|
||||
calc.isCampaign = true;
|
||||
calc.parameters.clear();
|
||||
calc->isCampaign = true;
|
||||
calc->parameters.clear();
|
||||
}
|
||||
calc.parameters.push_back(param);
|
||||
calc->parameters.push_back(param);
|
||||
|
||||
GH.dispatchMainThread([ourCampaign, this]()
|
||||
{
|
||||
@ -703,7 +703,7 @@ void CServerHandler::startCampaignScenario(HighScoreParameter param, std::shared
|
||||
else
|
||||
{
|
||||
CMM->openCampaignScreen(ourCampaign->campaignSet);
|
||||
GH.windows().createAndPushWindow<CHighScoreInputScreen>(true, calc);
|
||||
GH.windows().createAndPushWindow<CHighScoreInputScreen>(true, *calc);
|
||||
}
|
||||
};
|
||||
if(epilogue.hasPrologEpilog)
|
||||
|
@ -14,8 +14,6 @@
|
||||
#include "../lib/StartInfo.h"
|
||||
#include "../lib/CondSh.h"
|
||||
|
||||
#include "mainmenu/CHighScoreScreen.h"
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
class CConnection;
|
||||
@ -37,6 +35,9 @@ VCMI_LIB_NAMESPACE_END
|
||||
class CClient;
|
||||
class CBaseForLobbyApply;
|
||||
|
||||
class HighScoreCalculation;
|
||||
class HighScoreParameter;
|
||||
|
||||
// TODO: Add mutex so we can't set CONNECTION_CANCELLED if client already connected, but thread not setup yet
|
||||
enum class EClientState : ui8
|
||||
{
|
||||
@ -88,7 +89,7 @@ class CServerHandler : public IServerAPI, public LobbyInfo
|
||||
|
||||
std::vector<std::string> myNames;
|
||||
|
||||
HighScoreCalculation calc;
|
||||
std::shared_ptr<HighScoreCalculation> calc;
|
||||
|
||||
void threadHandleConnection();
|
||||
void threadRunServer();
|
||||
|
Loading…
Reference in New Issue
Block a user