mirror of
https://github.com/WiiLink24/wfc-server.git
synced 2026-04-26 10:18:29 -05:00
GameStats: Return 1 from getpd/setpd in error
This commit is contained in:
parent
c0196a65bd
commit
0642e14672
|
|
@ -13,7 +13,7 @@ import (
|
||||||
func (g *GameStatsSession) getpd(command common.GameSpyCommand) {
|
func (g *GameStatsSession) getpd(command common.GameSpyCommand) {
|
||||||
errMsg := common.GameSpyCommand{
|
errMsg := common.GameSpyCommand{
|
||||||
Command: "getpdr",
|
Command: "getpdr",
|
||||||
CommandValue: "0",
|
CommandValue: "1",
|
||||||
OtherValues: map[string]string{
|
OtherValues: map[string]string{
|
||||||
"pid": command.OtherValues["pid"],
|
"pid": command.OtherValues["pid"],
|
||||||
"lid": strconv.Itoa(g.LoginID),
|
"lid": strconv.Itoa(g.LoginID),
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ func (g *GameStatsSession) setpd(command common.GameSpyCommand) {
|
||||||
|
|
||||||
errMsg := common.GameSpyCommand{
|
errMsg := common.GameSpyCommand{
|
||||||
Command: "setpdr",
|
Command: "setpdr",
|
||||||
CommandValue: "0",
|
CommandValue: "1",
|
||||||
OtherValues: map[string]string{
|
OtherValues: map[string]string{
|
||||||
"pid": command.OtherValues["pid"],
|
"pid": command.OtherValues["pid"],
|
||||||
"lid": strconv.Itoa(g.LoginID),
|
"lid": strconv.Itoa(g.LoginID),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user