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

Fixed entering/leaving town.

This commit is contained in:
Michał W. Urbańczyk
2008-08-13 09:28:06 +00:00
parent 59b808f4e1
commit 52f6de2877
7 changed files with 97 additions and 21 deletions

View File

@@ -239,6 +239,17 @@ void CClient::process(int what)
static_cast<CPlayerInterface*>(playerint[sii.player])->showComp(sc);
break;
}
case 108:
{
HeroVisitCastle vc;
*serv >> vc;
gs->apply(&vc);
if(vc.start() && !vc.garrison() && vstd::contains(playerint,gs->getHero(vc.hid)->tempOwner))
{
playerint[gs->getHero(vc.hid)->tempOwner]->heroVisitsTown(gs->getHero(vc.hid),gs->getTown(vc.tid));
}
break;
}
case 500:
{
RemoveObject rh;