mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
Reboot Living up to its name
almost finish rebooting (im going insane), performance, increase llama spawn radius, remove auto restart for a little bit
This commit is contained in:
@@ -24,10 +24,35 @@ struct FUniqueNetIdRepl // : public FUniqueNetIdWrapper
|
||||
return *(TArray<uint8>*)(__int64(this) + ReplicationBytesOffset);
|
||||
}
|
||||
|
||||
bool IsIdentical(FUniqueNetIdRepl* OtherUniqueId)
|
||||
{
|
||||
// idk if this is right but whatever
|
||||
|
||||
bool bTest = true;
|
||||
|
||||
if (this->GetReplicationBytes().Num() > this->GetReplicationBytes().Num()) // != ?
|
||||
bTest = false;
|
||||
|
||||
for (int i = 0; i < this->GetReplicationBytes().Num(); i++)
|
||||
{
|
||||
if (this->GetReplicationBytes().at(i) != OtherUniqueId->GetReplicationBytes().at(i))
|
||||
{
|
||||
bTest = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// LOG_INFO(LogDev, "btest: {}", bTest);
|
||||
|
||||
return bTest;
|
||||
}
|
||||
|
||||
void CopyFromAnotherUniqueId(FUniqueNetIdRepl* OtherUniqueId)
|
||||
{
|
||||
CopyStruct(this, OtherUniqueId, GetSizeOfStruct(), GetStruct());
|
||||
|
||||
return;
|
||||
|
||||
auto& ReplicationBytes = GetReplicationBytes();
|
||||
|
||||
ReplicationBytes.Free();
|
||||
|
||||
Reference in New Issue
Block a user