1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

NKAI: water paths in graph

This commit is contained in:
Andrii Danylchenko
2024-02-11 15:27:56 +02:00
parent b236384356
commit fb6fd63a58
5 changed files with 62 additions and 7 deletions

View File

@@ -80,9 +80,12 @@ public:
auto pEnd = model->getTargetTileArea(end).topLeft();
auto viewPort = target.getRenderArea();
pStart.x += 3;
pEnd.x -= 3;
if(viewPort.isInside(pStart) && viewPort.isInside(pEnd))
{
target.drawLine(pStart, pEnd, ColorRGBA(255, 255, 0), ColorRGBA(255, 255, 0));
target.drawLine(pStart, pEnd, ColorRGBA(255, 255, 0), ColorRGBA(255, 0, 0));
}
}
};