Fix debug renderer

This commit is contained in:
Ivan Savenko
2023-03-07 00:06:58 +02:00
parent f768a5543e
commit db9a296d02
2 changed files with 13 additions and 2 deletions
+12 -1
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()