1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +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()

View File

@ -50,7 +50,7 @@ inline auto const & getLanguageList( )
{
static const std::array<Options, 7> languages
{ {
{ "chinese", "Chinese", "简体中文", "GBK", false, true },
{ "chinese", "Chinese", "简体中文", "GBK", true, true },
{ "english", "English", "English", "CP1252", true, true },
{ "french", "French", "Français", "CP1252", true, true },
{ "german", "German", "Deutsch", "CP1252", true, true },