better unk name

This commit is contained in:
quaK 2023-05-20 19:18:28 +03:00
parent c220834231
commit a7bde5c54c
2 changed files with 9 additions and 9 deletions

View File

@ -27,19 +27,19 @@ namespace thirdperson
if ((link_flags & 2) == 0 && (next_snap->ps.otherFlags & 4) == 0)
{
auto client_globals = a2;
if (!client_globals->unk2 || !client_globals->unk3)
if (!client_globals->unk_979676 || !client_globals->unk_979696)
{
if (cg_thirdPerson && cg_thirdPerson->current.enabled)
{
return 1;
}
if (!(link_flags & (1 << 0xE)) || client_globals->unk3)
if (!(link_flags & (1 << 0xE)) || client_globals->unk_979696)
return (link_flags >> 27) & 1;
if (link_flags & (1 << 0x1D))
return 0;
if (!(link_flags & (1 << 0x1C)))
return a2->unk1;
return a2->unk_601088;
}
}
}

View File

@ -2016,19 +2016,19 @@ namespace game
char __pad0[18680];
snapshot_s* nextSnap;
char __pad1[582400];
int unk1;
int unk_601088;
int renderingThirdPerson;
char __pad2[378580];
int unk2;
int unk_979676;
char __pad3[16];
int unk3;
int unk_979696;
};
static_assert(offsetof(cg_s, nextSnap) == 18680);
static_assert(offsetof(cg_s, unk1) == 601088);
static_assert(offsetof(cg_s, unk_601088) == 601088);
static_assert(offsetof(cg_s, renderingThirdPerson) == 601092);
static_assert(offsetof(cg_s, unk2) == 979676);
static_assert(offsetof(cg_s, unk3) == 979696);
static_assert(offsetof(cg_s, unk_979676) == 979676);
static_assert(offsetof(cg_s, unk_979696) == 979696);
struct pmove_t
{