mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Revert apparently broken changes from commits 96420bf, 92dcfd1, c4cf2a1
This commit is contained in:
parent
b74d608709
commit
afb9bfc180
@ -3628,7 +3628,7 @@ bool CGameHandler::buildStructure(ObjectInstanceID tid, BuildingID requestedID,
|
||||
sendAndApply(&fw);
|
||||
|
||||
if(t->visitingHero)
|
||||
objectVisited(t, t->visitingHero);
|
||||
visitCastleObjects(t, t->visitingHero);
|
||||
if(t->garrisonHero)
|
||||
visitCastleObjects(t, t->garrisonHero);
|
||||
|
||||
@ -4465,7 +4465,8 @@ bool CGameHandler::hireHero(const CGObjectInstance *obj, ui8 hid, PlayerColor pl
|
||||
|
||||
if(t)
|
||||
{
|
||||
objectVisited(t, nh);
|
||||
visitCastleObjects(t, nh);
|
||||
giveSpells (t,nh);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user