mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Changed: #1304: Adding Guild mission support in function tickUpdate of CCharacter
--HG-- branch : gsoc2011-guildmissions
This commit is contained in:
parent
19cfe26032
commit
c175338c7f
1 changed files with 16 additions and 0 deletions
|
@ -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);
|
||||
// update compass coordinates information
|
||||
|
|
Loading…
Reference in a new issue