mirror of
https://github.com/DumbDev69420/EscapeTheBackrooms_Internal.git
synced 2025-06-29 18:22:32 +08:00
Fixed some annoying stuff
This commit is contained in:
@ -167,13 +167,7 @@ namespace PlayerStuff {
|
||||
this->IsSpectator = true;
|
||||
}
|
||||
|
||||
int Sizecc = name.size();
|
||||
for (size_t i = 0; i < 14; i++)
|
||||
{
|
||||
if (i >= Sizecc) break;
|
||||
|
||||
Sanitizedname += name[i];
|
||||
}
|
||||
this->Sanitizedname = SanitizeWString(Name);
|
||||
|
||||
auto LocString = LocToWString(location);
|
||||
|
||||
@ -196,6 +190,21 @@ namespace PlayerStuff {
|
||||
}
|
||||
}
|
||||
|
||||
static std::wstring SanitizeWString(std::wstring Input) {
|
||||
std::wstring output = L"";
|
||||
|
||||
int Sizecc = Input.size();
|
||||
|
||||
for (size_t i = 0; i < 14; i++)
|
||||
{
|
||||
if (i >= Sizecc) break;
|
||||
|
||||
output += Input[i];
|
||||
}
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
static std::vector<std::wstring> LocToWString(SDK::FVector loc) {
|
||||
std::vector<std::wstring> Location;
|
||||
|
||||
|
Reference in New Issue
Block a user