From 0642e146725e7d8e627ac293343f7ffcfeead93b Mon Sep 17 00:00:00 2001 From: Palapeli <26661008+mkwcat@users.noreply.github.com> Date: Thu, 6 Mar 2025 08:03:51 -0500 Subject: [PATCH] GameStats: Return 1 from getpd/setpd in error --- gamestats/getpd.go | 2 +- gamestats/setpd.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gamestats/getpd.go b/gamestats/getpd.go index ba37e55..0de2aa9 100644 --- a/gamestats/getpd.go +++ b/gamestats/getpd.go @@ -13,7 +13,7 @@ import ( func (g *GameStatsSession) getpd(command common.GameSpyCommand) { errMsg := common.GameSpyCommand{ Command: "getpdr", - CommandValue: "0", + CommandValue: "1", OtherValues: map[string]string{ "pid": command.OtherValues["pid"], "lid": strconv.Itoa(g.LoginID), diff --git a/gamestats/setpd.go b/gamestats/setpd.go index 85d2acf..20a2cf3 100644 --- a/gamestats/setpd.go +++ b/gamestats/setpd.go @@ -27,7 +27,7 @@ func (g *GameStatsSession) setpd(command common.GameSpyCommand) { errMsg := common.GameSpyCommand{ Command: "setpdr", - CommandValue: "0", + CommandValue: "1", OtherValues: map[string]string{ "pid": command.OtherValues["pid"], "lid": strconv.Itoa(g.LoginID),