1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fix debug renderer

This commit is contained in:
Ivan Savenko
2023-03-06 23:59:25 +02:00
parent f768a5543e
commit db9a296d02
2 changed files with 13 additions and 2 deletions

View File

@@ -617,7 +617,18 @@ void MapRendererDebug::renderTile(IMapRendererContext & context, Canvas & target
uint8_t MapRendererDebug::checksum(IMapRendererContext & context, const int3 & coordinates)
{
return 0;
uint8_t result = 0;
if (context.showVisitable())
result += 1;
if (context.showBlockable())
result += 2;
if (context.showGrid())
result += 4;
return result;
}
MapRendererPath::MapRendererPath()