mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-13 07:08:05 +03:00
Merge pull request #286 from LukasKastern/master
Fixed GetFriends returning blocked friends
This commit is contained in:
commit
4fafe33a93
@ -114,7 +114,7 @@ namespace Steamworks
|
|||||||
{
|
{
|
||||||
for ( int i=0; i<Internal.GetFriendCount( (int) FriendFlags.Immediate ); i++ )
|
for ( int i=0; i<Internal.GetFriendCount( (int) FriendFlags.Immediate ); i++ )
|
||||||
{
|
{
|
||||||
yield return new Friend( Internal.GetFriendByIndex( i, 0xFFFF ) );
|
yield return new Friend( Internal.GetFriendByIndex( i, (int)FriendFlags.Immediate ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ namespace Steamworks
|
|||||||
{
|
{
|
||||||
for ( int i = 0; i < Internal.GetFriendCount( (int)FriendFlags.Blocked ); i++ )
|
for ( int i = 0; i < Internal.GetFriendCount( (int)FriendFlags.Blocked ); i++ )
|
||||||
{
|
{
|
||||||
yield return new Friend( Internal.GetFriendByIndex( i, 0xFFFF ) );
|
yield return new Friend( Internal.GetFriendByIndex( i, (int)FriendFlags.Blocked) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user