1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

* support for prison

* updated changelog
This commit is contained in:
Michał W. Urbańczyk
2009-02-14 19:12:40 +00:00
parent 99aef852be
commit adf5c052f9
12 changed files with 121 additions and 20 deletions

View File

@@ -377,6 +377,19 @@ void CClient::process(int what)
playerint[h->tempOwner]->heroInGarrisonChange(gs->getTown(hr.tid));
break;
}
case 516:
{
GiveHero hr;
*serv >> hr;
tlog5 << "Players receives hero\n";
CGHeroInstance *h = gs->getHero(hr.id);
CGI->mh->hideObject(h);
gs->apply(&hr);
CGI->mh->initHeroDef(h);
CGI->mh->printObject(h);
playerint[h->tempOwner]->heroCreated(h);
break;
}
case 1001:
{
SetObjectProperty sop;