1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

fix campaign highscore sum

This commit is contained in:
Laserlicht 2024-06-23 15:40:46 +02:00 committed by GitHub
parent c328007687
commit 539ffb3810
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -648,14 +648,14 @@ void CServerHandler::startGameplay(VCMI_LIB_WRAP_NAMESPACE(CGameState) * gameSta
if(CMM)
CMM->disable();
campaignScoreCalculator = nullptr;
switch(si->mode)
{
case EStartMode::NEW_GAME:
client->newGame(gameState);
break;
case EStartMode::CAMPAIGN:
if(si->campState->conqueredScenarios().empty())
campaignScoreCalculator.reset();
client->newGame(gameState);
break;
case EStartMode::LOAD_GAME: