1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

* icon in infobox showing that there is hero in town garrison

* fort/citadel/castle screen
This commit is contained in:
Michał W. Urbańczyk
2008-08-17 09:11:16 +00:00
parent 346af53961
commit 61e66fa89c
9 changed files with 362 additions and 113 deletions

View File

@ -255,14 +255,14 @@ void CClient::process(int what)
RemoveObject rh;
*serv >> rh;
CGObjectInstance *obj = gs->map->objects[rh.id];
CGI->mh->removeObject(obj);
gs->apply(&rh);
if(obj->ID == 34)
{
CGHeroInstance *h = static_cast<CGHeroInstance*>(gs->map->objects[rh.id]);
CGHeroInstance *h = static_cast<CGHeroInstance*>(obj);
std::cout << "Removing hero with id = "<<(unsigned)rh.id<<std::endl;
playerint[h->tempOwner]->heroKilled(h);
}
CGI->mh->removeObject(obj);
gs->apply(&rh);
break;
}
case 501: //hero movement response - we have to notify interfaces and callback