2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-04-08 18:40:06 +03:00

Update sv_main.cpp

This commit is contained in:
Splatt581 2024-05-13 14:19:10 +03:00 committed by GitHub
parent 8a1b1fdb58
commit 9e2ce4714f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8411,13 +8411,13 @@ char* EXT_FUNC SV_GetIDString_internal(USERID_t *id)
{ {
Q_strncpy(idstr, "STEAM_ID_LAN", ARRAYSIZE(idstr) - 1); Q_strncpy(idstr, "STEAM_ID_LAN", ARRAYSIZE(idstr) - 1);
} }
else if (!id->m_SteamID) else if (!id->m_SteamIDValidated)
{ {
Q_strncpy(idstr, "STEAM_ID_PENDING", ARRAYSIZE(idstr) - 1); Q_strncpy(idstr, "STEAM_ID_PENDING", ARRAYSIZE(idstr) - 1);
} }
else else
{ {
TSteamGlobalUserID steam2ID = Steam_Steam3IDtoSteam2(id->m_SteamID); TSteamGlobalUserID steam2ID = Steam_Steam3IDtoSteam2(id->m_SteamIDValidated);
Q_snprintf(idstr, ARRAYSIZE(idstr) - 1, "STEAM_%u:%u:%u", steam2ID.m_SteamInstanceID, steam2ID.m_SteamLocalUserID.Split.High32bits, steam2ID.m_SteamLocalUserID.Split.Low32bits); Q_snprintf(idstr, ARRAYSIZE(idstr) - 1, "STEAM_%u:%u:%u", steam2ID.m_SteamInstanceID, steam2ID.m_SteamLocalUserID.Split.High32bits, steam2ID.m_SteamLocalUserID.Split.Low32bits);
} }
break; break;
@ -8426,13 +8426,13 @@ char* EXT_FUNC SV_GetIDString_internal(USERID_t *id)
{ {
Q_strncpy(idstr, "VALVE_ID_LAN", ARRAYSIZE(idstr) - 1); Q_strncpy(idstr, "VALVE_ID_LAN", ARRAYSIZE(idstr) - 1);
} }
else if (!id->m_SteamID) else if (!id->m_SteamIDValidated)
{ {
Q_strncpy(idstr, "VALVE_ID_PENDING", ARRAYSIZE(idstr) - 1); Q_strncpy(idstr, "VALVE_ID_PENDING", ARRAYSIZE(idstr) - 1);
} }
else else
{ {
TSteamGlobalUserID steam2ID = Steam_Steam3IDtoSteam2(id->m_SteamID); TSteamGlobalUserID steam2ID = Steam_Steam3IDtoSteam2(id->m_SteamIDValidated);
Q_snprintf(idstr, ARRAYSIZE(idstr) - 1, "VALVE_%u:%u:%u", steam2ID.m_SteamInstanceID, steam2ID.m_SteamLocalUserID.Split.High32bits, steam2ID.m_SteamLocalUserID.Split.Low32bits); Q_snprintf(idstr, ARRAYSIZE(idstr) - 1, "VALVE_%u:%u:%u", steam2ID.m_SteamInstanceID, steam2ID.m_SteamLocalUserID.Split.High32bits, steam2ID.m_SteamLocalUserID.Split.Low32bits);
} }
break; break;