mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
@@ -156,6 +156,16 @@ void CLobbyScreen::startCampaign()
|
||||
|
||||
void CLobbyScreen::startScenario(bool allowOnlyAI)
|
||||
{
|
||||
if (tabRand && CSH->si->mapGenOptions)
|
||||
{
|
||||
// Save RMG settings at game start
|
||||
tabRand->saveOptions(*CSH->si->mapGenOptions);
|
||||
}
|
||||
|
||||
// Save chosen difficulty
|
||||
Settings lastDifficulty = settings.write["general"]["lastDifficulty"];
|
||||
lastDifficulty->Integer() = getCurrentDifficulty();
|
||||
|
||||
if (CSH->validateGameStart(allowOnlyAI))
|
||||
{
|
||||
CSH->sendStartGame(allowOnlyAI);
|
||||
|
||||
Reference in New Issue
Block a user