1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Revert CamCust change

This commit is contained in:
George King
2025-03-03 17:43:12 +01:00
committed by GitHub
parent 77056d484d
commit dcea840626

View File

@ -92,13 +92,7 @@ CSelectionBase::CSelectionBase(ESelectionScreen type)
pos.h = 584;
if(screenType == ESelectionScreen::campaignList)
{
//setBackground(ImagePath::builtin("CamCust.bmp"));
const JsonNode& gameSelectConfig = CMainMenuConfig::get().getConfig()["campaign-selection"];
const JsonVector& bgNames = gameSelectConfig["background"].Vector();
setBackground(ImagePath::fromJson(*RandomGeneratorUtil::nextItem(bgNames, CRandomGenerator::getDefault())));
setBackground(ImagePath::builtin("CamCust.bmp"));
pos = background->center();
}
else