04-30-2023, 12:07 PM
/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);
}

