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:
parent
4f8890d866
commit
2dc48496ef
@ -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]))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user