playroom优化

This commit is contained in:
hahwu 2025-07-16 18:57:29 +08:00
parent 170a30be23
commit 42e908a36a

View File

@ -3379,7 +3379,15 @@ func ReqPlayroomSelectReward(player *Player, buf []byte) error {
})
return err
}
GameId := PlayroomMod.GetGameId()
Target := PlayroomMod.GetTarget()
if GameId == 0 || Target == 0 {
player.SendErrClienRes(&msg.ResPlayroomSelectReward{
Code: msg.RES_CODE_FAIL,
Msg: "no game or target",
})
return fmt.Errorf("no game or target")
}
G_GameLogicPtr.FriendMgrSend(&MsqMod.Msg{
From: int(player.M_DwUin),
To: Target,