Changed: #1304: Adding Guild mission support in function tickUpdate of CCharacter

This commit is contained in:
Fabien_HENON 2011-07-04 12:38:42 +02:00
parent 5955b44550
commit f41994dfff

View file

@ -1341,6 +1341,22 @@ uint32 CCharacter::tickUpdate()
} }
} }
// Adding UpdateCompass for guild missions
{
H_AUTO(CharacterUpdateGuildCompass);
CGuild * guild = CGuildManager::getInstance()->getGuildFromId( _GuildId );
if ( guild )
{
const uint size = (uint)guild->getMissions().size();
for ( uint i = 0; i < size; i++ )
{
nlassert(guild->getMissions()[i]);
guild->getMissions()[i]->updateCompass(*this, string(""));
guild->getMissions()[i]->updateCompass(*this, string("GROUP:"));
}
}
}
{ {
H_AUTO(CharacterUpdateTargetCoordinatesCompass); H_AUTO(CharacterUpdateTargetCoordinatesCompass);
// update compass coordinates information // update compass coordinates information