1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Fix generation of roads and rivers near map edge

This commit is contained in:
Ivan Savenko 2023-04-13 16:26:03 +03:00
parent 4f8890d866
commit 2dc48496ef

View File

@ -293,7 +293,7 @@ CDrawLinesOperation::ValidationResult CDrawLinesOperation::validateTile(const Li
int3 currentPos(cx, cy, pos.z);
bool hasSomething = !map->isInTheMap(currentPos) || tileHasSomething(currentPos);
bool hasSomething = map->isInTheMap(currentPos) && tileHasSomething(currentPos);
if(ruleIsSomething(flipped.data[i]))
{