mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
s20-s23 much better
This commit is contained in:
@@ -178,8 +178,12 @@ bool AActor::IsActorBeingDestroyed()
|
||||
|
||||
bool AActor::IsNetStartup()
|
||||
{
|
||||
static auto bNetStartupOffset = GetOffset("bNetStartup");
|
||||
static auto bNetStartupFieldMask = GetFieldMask(GetProperty("bNetStartup"));
|
||||
static auto bNetStartupOffset = GetOffset("bNetStartup", false) == -1
|
||||
? GetOffset("bNetTemporary") // same bitfield, needed because bNetStartup is unreflected later on
|
||||
: GetOffset("bNetStartup");
|
||||
static auto bNetStartupFieldMask = GetProperty("bNetStartup", false)
|
||||
? GetFieldMask(GetProperty("bNetStartup"))
|
||||
: GetFieldMask(GetProperty("bNetTemporary")) * 2; // get the next one
|
||||
return ReadBitfieldValue(bNetStartupOffset, bNetStartupFieldMask);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user