1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-07 00:58:39 +02:00

Added debug rendering

This commit is contained in:
Ivan Savenko
2023-02-19 23:42:45 +02:00
parent 685cc91029
commit 16e7f860ff
8 changed files with 53 additions and 6 deletions

View File

@ -190,6 +190,16 @@ bool MapRendererContext::showGrid() const
return true; // settings["gameTweaks"]["showGrid"].Bool();
}
bool MapRendererContext::showVisitable() const
{
return settings["session"]["showVisitable"].Bool();
}
bool MapRendererContext::showBlockable() const
{
return settings["session"]["showBlockable"].Bool();
}
void MapViewController::setViewCenter(const int3 & position)
{
assert(context->isInMap(position));