mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Fix water generation, try to improve decoration level a bit
This commit is contained in:
@@ -292,7 +292,7 @@ void CDrawTerrainOperation::updateTerrainViews()
|
|||||||
|
|
||||||
if(pattern.decoration)
|
if(pattern.decoration)
|
||||||
{
|
{
|
||||||
if (gen->nextInt(100) > decorationsPercentage)
|
if (pattern.mapping.size() < 2 || gen->nextInt(100) > decorationsPercentage)
|
||||||
mapping = pattern.mapping[0];
|
mapping = pattern.mapping[0];
|
||||||
else
|
else
|
||||||
mapping = pattern.mapping[1];
|
mapping = pattern.mapping[1];
|
||||||
|
@@ -47,7 +47,7 @@ RmgMap::RmgMap(const CMapGenOptions& mapGenOptions) :
|
|||||||
|
|
||||||
int RmgMap::getDecorationsPercentage() const
|
int RmgMap::getDecorationsPercentage() const
|
||||||
{
|
{
|
||||||
return 10; // arbitrary value to generate more readable map
|
return 15; // arbitrary value to generate more readable map
|
||||||
}
|
}
|
||||||
|
|
||||||
void RmgMap::foreach_neighbour(const int3 & pos, const std::function<void(int3 & pos)> & foo) const
|
void RmgMap::foreach_neighbour(const int3 & pos, const std::function<void(int3 & pos)> & foo) const
|
||||||
|
Reference in New Issue
Block a user