1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-29 21:56:54 +02:00

Fix activation of in-game console in other windows

This commit is contained in:
Ivan Savenko 2023-07-04 19:00:35 +03:00
parent 900b1c1763
commit f914ec9d57

View File

@ -134,12 +134,15 @@ void AdventureMapInterface::activate()
} }
void AdventureMapInterface::deactivate() void AdventureMapInterface::deactivate()
{ {
CIntObject::deactivate(); CIntObject::deactivate();
CCS->curh->set(Cursor::Map::POINTER); CCS->curh->set(Cursor::Map::POINTER);
}
if(LOCPLINT)
void AdventureMapInterface::showAll(Canvas & to) LOCPLINT->cingconsole->deactivate();
}
void AdventureMapInterface::showAll(Canvas & to)
{ {
CIntObject::showAll(to); CIntObject::showAll(to);
LOCPLINT->cingconsole->show(to); LOCPLINT->cingconsole->show(to);