GameStats: Return 1 from getpd/setpd in error

This commit is contained in:
Palapeli
2025-03-06 08:03:51 -05:00
parent c0196a65bd
commit 0642e14672
2 changed files with 2 additions and 2 deletions

View File

@@ -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),

View File

@@ -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),