mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Locking pim mutex in client pack handling method, instead of dozens playerint call-ins. GUI won't try updating in between gamestate change and call-ins about it. Should fix #912.
Minor changes.
This commit is contained in:
@@ -771,10 +771,7 @@ void ShowInInfobox::applyCl(CClient *cl)
|
||||
{
|
||||
CComponent sc(c);
|
||||
text.toString(sc.description);
|
||||
if(vstd::contains(cl->playerint, player) && cl->playerint[player]->human)
|
||||
{
|
||||
static_cast<CPlayerInterface*>(cl->playerint[player])->showComp(sc);
|
||||
}
|
||||
INTERFACE_CALL_IF_PRESENT(player,showComp, sc);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user