mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Revert CamCust change
This commit is contained in:
@ -92,13 +92,7 @@ CSelectionBase::CSelectionBase(ESelectionScreen type)
|
|||||||
pos.h = 584;
|
pos.h = 584;
|
||||||
if(screenType == ESelectionScreen::campaignList)
|
if(screenType == ESelectionScreen::campaignList)
|
||||||
{
|
{
|
||||||
//setBackground(ImagePath::builtin("CamCust.bmp"));
|
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())));
|
|
||||||
|
|
||||||
pos = background->center();
|
pos = background->center();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user