From 574b8c411e732b18941012a22fa5d7bcec627e90 Mon Sep 17 00:00:00 2001 From: a Date: Fri, 6 Dec 2024 23:10:48 +0200 Subject: [PATCH] fix implementation of `Steam_Remote_Storage::GetUserPublishedItemVoteDetails()` --- dll/steam_remote_storage.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/dll/steam_remote_storage.cpp b/dll/steam_remote_storage.cpp index af374533..ad61f240 100644 --- a/dll/steam_remote_storage.cpp +++ b/dll/steam_remote_storage.cpp @@ -1060,15 +1060,11 @@ SteamAPICall_t Steam_Remote_Storage::GetUserPublishedItemVoteDetails( PublishedF data.m_unPublishedFileId = unPublishedFileId; if (settings->isModInstalled(unPublishedFileId)) { auto mod = settings->getMod(unPublishedFileId); - if (mod.steamIDOwner == settings->get_local_steam_id().ConvertToUint64()) { - data.m_eResult = EResult::k_EResultOK; - data.m_fScore = mod.score; - data.m_nReports = 0; // TODO is this ok? - data.m_nVotesAgainst = mod.votesDown; - data.m_nVotesFor = mod.votesUp; - } else { // not published by this user - data.m_eResult = EResult::k_EResultFail; // TODO is this correct? - } + data.m_eResult = EResult::k_EResultOK; + data.m_fScore = mod.score; + data.m_nReports = 0; // TODO is this ok? + data.m_nVotesAgainst = mod.votesDown; + data.m_nVotesFor = mod.votesUp; } else { // mod not installed data.m_eResult = EResult::k_EResultFail; // TODO is this correct? }