ServersMU - Comunidad

Zona Programadores => Sources => Mensaje iniciado por: Applayo en Abril 22, 2021, 12:14:52 am

Título: Fix ViewPort GuildUnion and Taget Guild Union
Publicado por: Applayo en Abril 22, 2021, 12:14:52 am
(https://i.upanh.org/2021/03/25/Untitled-1.png)

[b]User.cpp[/b] =>[b]Gameserver[/b]

[code]int gObjGetRelationShip(LPOBJ lpObj, LPOBJ lpTargetObj)
{
if ( lpObj == NULL || lpTargetObj == NULL )
{
return false;
}

if ( lpObj->Guild == NULL || lpTargetObj->Guild == NULL )
{
return 0;
}
int iUnion = (!lpObj->Guild->GuildUnion) ? lpObj->Guild->Number : lpObj->Guild->GuildUnion;
int iUnion2 = (!lpTargetObj->Guild->GuildUnion) ? lpTargetObj->Guild->Number : lpTargetObj->Guild->GuildUnion;
return gUnionManager.GetGuildRelationShip(iUnion,iUnion2);

}[/code]

Creditos: LeeHenry
Título: Re: Fix ViewPort GuildUnion and Taget Guild Union
Publicado por: robins1998 en Mayo 27, 2021, 02:29:38 am
Very helpful, thanks for sharing.