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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user