1
0
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:
Michał W. Urbańczyk
2012-04-06 15:02:15 +00:00
parent 038d105bcc
commit 7317e803db
11 changed files with 165 additions and 126 deletions

View File

@@ -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);
}