mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +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 (gen->nextInt(100) > decorationsPercentage)
|
||||
if (pattern.mapping.size() < 2 || gen->nextInt(100) > decorationsPercentage)
|
||||
mapping = pattern.mapping[0];
|
||||
else
|
||||
mapping = pattern.mapping[1];
|
||||
|
||||
Reference in New Issue
Block a user