Reconstruct readable C++ and organize cohesive source subsystems
Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
This commit is contained in:
parent
35d2a8cb36
commit
a47d20f8be
890 changed files with 11796 additions and 16664 deletions
|
|
@ -1,44 +0,0 @@
|
|||
#include "Contents/EffectActor.h"
|
||||
#include "Contents/EffectVisibility.h"
|
||||
#include "Contents/RagEffectState.h"
|
||||
#include "Contents/ServiceOptions.h"
|
||||
|
||||
// OFFSET: 0x00C734B0
|
||||
// FUNCTION: fn_20327
|
||||
bool PartyEffectVisible(const RagEffectState& effect, const EffectVisibilityContext& context) {
|
||||
if (context.options.Get(8) == 0 && effect.forceRender == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const EffectActor* actor = effect.parent;
|
||||
|
||||
if (!actor) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (actor->render.unknown_00A8 == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (effect.unknown_11CA0 == 0) {
|
||||
if (actor->render.accountId == context.localAccountId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (context.partyVisible) {
|
||||
for (const MessengerMember& member : context.party) {
|
||||
if (member.accountId == actor->render.accountId) {
|
||||
// Original membership helper stops at the first match.
|
||||
if (member.offline == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Independent of the membership gate.
|
||||
return actor->render.visible != 0 && actor->render.enabled != 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue