Skip to content

Commit 7ca9931

Browse files
committed
Fixed and reorganized AccountTypeToIdentifier()
1 parent c8123a1 commit 7ca9931

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

src/core/modules/steam/steam_wrap.h

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -158,19 +158,6 @@ class CSteamIDExt
158158

159159
static bool AccountTypeToIdentifier(EAccountType account_type, EChatSteamIDInstanceFlags account_instance_flags, char& identifier)
160160
{
161-
if (account_type == k_EAccountTypeChat)
162-
{
163-
if (account_instance_flags == k_EChatInstanceFlagClan) {
164-
identifier = 'c';
165-
}
166-
else if (account_instance_flags == k_EChatInstanceFlagLobby) {
167-
identifier = 'L';
168-
}
169-
else {
170-
return false;
171-
}
172-
}
173-
174161
switch (account_type)
175162
{
176163
case k_EAccountTypeInvalid:
@@ -198,7 +185,18 @@ class CSteamIDExt
198185
identifier = 'g';
199186
break;
200187
case k_EAccountTypeChat:
201-
identifier = 'T';
188+
if (account_instance_flags == k_EChatInstanceFlagClan) {
189+
identifier = 'c';
190+
}
191+
else if (account_instance_flags == k_EChatInstanceFlagLobby) {
192+
identifier = 'L';
193+
}
194+
else if (account_instance_flags == 1) {
195+
identifier = 'T';
196+
}
197+
else {
198+
return false;
199+
}
202200
break;
203201
case 10:
204202
identifier = 'a';

0 commit comments

Comments
 (0)