mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
Merge pull request #4557 from utzuro/fix/rmg-road-type-not-saving
RMG: Enable only those roads, that are enabled in persistentStorage.json
This commit is contained in:
commit
a87ab4e4d7
@ -601,6 +601,12 @@ void RandomMapTab::loadOptions()
|
||||
{
|
||||
w->setItem(mapGenOptions->getMapTemplate());
|
||||
}
|
||||
} else
|
||||
{
|
||||
// Default settings
|
||||
mapGenOptions->setRoadEnabled(RoadId(Road::DIRT_ROAD), true);
|
||||
mapGenOptions->setRoadEnabled(RoadId(Road::GRAVEL_ROAD), true);
|
||||
mapGenOptions->setRoadEnabled(RoadId(Road::COBBLESTONE_ROAD), true);
|
||||
}
|
||||
updateMapInfoByHost();
|
||||
|
||||
|
@ -30,9 +30,6 @@ CMapGenOptions::CMapGenOptions()
|
||||
customizedPlayers(false)
|
||||
{
|
||||
initPlayersMap();
|
||||
setRoadEnabled(RoadId(Road::DIRT_ROAD), true);
|
||||
setRoadEnabled(RoadId(Road::GRAVEL_ROAD), true);
|
||||
setRoadEnabled(RoadId(Road::COBBLESTONE_ROAD), true);
|
||||
}
|
||||
|
||||
si32 CMapGenOptions::getWidth() const
|
||||
|
Loading…
Reference in New Issue
Block a user