Logo
live-news-icon

Noticias

Tema: Fix ViewPort GuildUnion and Taget Guild Union

Applayo

  • *
Fix ViewPort GuildUnion and Taget Guild Union | en: Abril 22, 2021, 12:14:52 am »



User.cpp =>Gameserver

Código: [Seleccionar]
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);

}

Creditos: LeeHenry

robins1998

  • *
Re: Fix ViewPort GuildUnion and Taget Guild Union | Respuesta #1 en: Mayo 27, 2021, 02:29:38 am »

Very helpful, thanks for sharing.


Responder Marcar No Leido Enviar Topic Print