mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Merge pull request #62 from kkukshtel/master
This commit is contained in:
commit
a6b440324b
@ -94,6 +94,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="Client\Achievements.cs" />
|
||||
<Compile Include="Client\Client.cs" />
|
||||
<Compile Include="Client\Lobby.cs" />
|
||||
<Compile Include="Client\RichPresence.cs" />
|
||||
<Compile Include="Client\Leaderboard.cs" />
|
||||
<Compile Include="Client\App.cs" />
|
||||
|
@ -415,19 +415,18 @@ public ulong Owner
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_owner == 0 && IsValid)
|
||||
if (IsValid)
|
||||
{
|
||||
_owner = client.native.matchmaking.GetLobbyOwner(CurrentLobby);
|
||||
return client.native.matchmaking.GetLobbyOwner(CurrentLobby);
|
||||
}
|
||||
return _owner;
|
||||
return 0;
|
||||
}
|
||||
private set
|
||||
set
|
||||
{
|
||||
if (_owner == value) return;
|
||||
if (client.native.matchmaking.SetLobbyOwner(CurrentLobby, value)) { _owner = value; }
|
||||
if (Owner == value) return;
|
||||
client.native.matchmaking.SetLobbyOwner(CurrentLobby, value);
|
||||
}
|
||||
}
|
||||
ulong _owner = 0;
|
||||
|
||||
/// <summary>
|
||||
/// Is the Lobby joinable by other people? Defaults to true;
|
||||
@ -490,7 +489,6 @@ public void Leave()
|
||||
{
|
||||
if (CurrentLobby != 0) { client.native.matchmaking.LeaveLobby(CurrentLobby); }
|
||||
CurrentLobby = 0;
|
||||
_owner = 0;
|
||||
CurrentLobbyData = null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user