mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 06:38:01 +03:00
Fixed inventory continually updating
This commit is contained in:
parent
c0df4af9da
commit
ae8906794f
@ -100,12 +100,11 @@ namespace Facepunch.Steamworks
|
|||||||
|
|
||||||
internal void DestroyResult()
|
internal void DestroyResult()
|
||||||
{
|
{
|
||||||
if ( updateRequest != -1 )
|
if ( updateRequest == -1 ) return;
|
||||||
{
|
|
||||||
client.native.inventory.DestroyResult( updateRequest );
|
client.native.inventory.DestroyResult( updateRequest );
|
||||||
updateRequest = -1;
|
updateRequest = -1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
internal void Update()
|
internal void Update()
|
||||||
@ -126,6 +125,8 @@ namespace Facepunch.Steamworks
|
|||||||
if ( status == Valve.Steamworks.EResult.k_EResultOK || status == Valve.Steamworks.EResult.k_EResultExpired )
|
if ( status == Valve.Steamworks.EResult.k_EResultOK || status == Valve.Steamworks.EResult.k_EResultExpired )
|
||||||
{
|
{
|
||||||
RetrieveInventory();
|
RetrieveInventory();
|
||||||
|
DestroyResult();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Some other error
|
// Some other error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user