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

Replaced CPlayerInterface::pim with CGuiHandler::interfaceLock

- Removed CPlayerInterface::pim since this lock does not actually
protects LOCPLINT but rather entire game UI state
- added more logical CGuiHandler::interfaceLock
- interface lock is now non-recursive and is locked only once by initial
caller that want to access GUI
This commit is contained in:
Ivan Savenko
2023-09-27 18:33:52 +03:00
parent 97097c20ad
commit d6b9fa8fbd
14 changed files with 65 additions and 79 deletions

View File

@@ -304,8 +304,6 @@ CMainMenu::CMainMenu()
CMainMenu::~CMainMenu()
{
boost::unique_lock<boost::recursive_mutex> lock(*CPlayerInterface::pim);
if(GH.curInt == this)
GH.curInt = nullptr;
}