mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
* mostly done Events objects handling
* some moving hero code improvements * fixed Blacksmith * minor changes
This commit is contained in:
@ -32,8 +32,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
CSharedCond<std::set<CPack*> > mess(new std::set<CPack*>);
|
||||
|
||||
void SetResources::applyCl( CClient *cl )
|
||||
{
|
||||
cl->playerint[player]->receivedResource(-1,-1);
|
||||
@ -168,15 +166,6 @@ void TryMoveHero::applyCl( CClient *cl )
|
||||
i->second->heroMoved(hmd);
|
||||
}
|
||||
}
|
||||
|
||||
//add info for callback
|
||||
if(result<2)
|
||||
{
|
||||
mess.mx->lock();
|
||||
mess.res->insert(new TryMoveHero(*this));
|
||||
mess.mx->unlock();
|
||||
mess.cv->notify_all();
|
||||
}
|
||||
}
|
||||
|
||||
void SetGarrisons::applyCl( CClient *cl )
|
||||
|
Reference in New Issue
Block a user