----------------------------------------------------------------------------- Purpose: Returns the matching chat steamID, with the default instance of 0 Input: SteamID, either a Clan type or a Chat type w/ the Clan flag set Output: SteamID with account type changed to clan. If account type was not clan to start with, instance will be set to 0 -------------------------------------------------------
| 608 | // If account type was not clan to start with, instance will be set to 0 |
| 609 | //----------------------------------------------------------------------------- |
| 610 | CSteamID ClanIDFromSteamID( const CSteamID &steamID ) |
| 611 | { |
| 612 | if ( steamID.GetEAccountType() == k_EAccountTypeClan ) |
| 613 | return steamID; |
| 614 | |
| 615 | return ClanIDFromChatID( steamID ); |
| 616 | } |
| 617 | |
| 618 | |
| 619 | // Asserts steamID type before conversion |
nothing calls this directly
no test coverage detected