1
0
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:
Michał W. Urbańczyk
2009-04-20 22:57:07 +00:00
parent 408411d8c3
commit c8b6858716
14 changed files with 460 additions and 170 deletions

View File

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