visibility of pets in the city
#8


10 hours ago, Andrein95 said:




/index.php?/profile/14423-nicolasg/&do=hovercard" data-mentionid="14423" href="/index.php?/profile/14423-nicolasg/" rel="">@nicolasg Correct me If I'm wrong, at this point if someone want to show always P1 and P2 in city whould remove else clausole and set the flag to visible at the start of the function, do you confirm?

 


if (pPack->mapAttr & MATT_PEACE || pPack->mapAttr & MATT_WAR)
{
if (pInfo->GetTargetEntity(eTARGET) == penEntity)
{
pInfo->TargetClear(eTARGET);
}
if (pInfo->GetTargetEntity(eTARGET_REAL) == penEntity)
{
pInfo->TargetClear(eTARGET_REAL);
}
// *** to remove :penEntity->SetFlagOn(ENF_HIDDEN);

}
// this ?
else
{
penEntity->SetFlagOff(ENF_HIDDEN);
}


 




Yes, it is best to comment from the else to the closing brace



Messages In This Thread
[No subject] - by JLT - 01-31-2023, 07:13 AM
[No subject] - by nicolasg - 02-01-2023, 02:15 PM
[No subject] - by JLT - 02-02-2023, 12:54 AM
[No subject] - by Matt Hias - 02-06-2023, 05:14 PM
[No subject] - by Desarija - 02-06-2023, 06:42 PM
[No subject] - by Matt Hias - 02-06-2023, 07:15 PM
[No subject] - by Andrein95 - 04-30-2023, 12:07 PM
[No subject] - by nicolasg - 04-30-2023, 09:28 PM
[No subject] - by Hassan - 06-29-2023, 06:09 AM
[No subject] - by Desarija - 06-29-2023, 06:14 AM
[No subject] - by Hassan - 06-29-2023, 06:31 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)