Minor fixes for rejoining signals.

This commit is contained in:
genxium
2022-10-04 11:24:47 +08:00
parent 1004fd45db
commit a6731dc7d6
8 changed files with 269 additions and 191 deletions

View File

@@ -260,6 +260,7 @@ func Serve(c *gin.Context) {
NstDelayFrames: pRoom.NstDelayFrames,
InputFrameUpsyncDelayTolerance: pRoom.InputFrameUpsyncDelayTolerance,
MaxChasingRenderFramesPerUpdate: pRoom.MaxChasingRenderFramesPerUpdate,
PlayerBattleState: pThePlayer.BattleState, // For frontend to know whether it's rejoining
}
resp := &pb.WsResp{
@@ -269,7 +270,7 @@ func Serve(c *gin.Context) {
BciFrame: bciFrame,
}
// Logger.Info("Sending downsync HeartbeatRequirements:", zap.Any("roomId", pRoom.Id), zap.Any("playerId", playerId), zap.Any("resp", resp))
Logger.Debug("Sending downsync HeartbeatRequirements:", zap.Any("roomId", pRoom.Id), zap.Any("playerId", playerId), zap.Any("resp", resp))
theBytes, marshalErr := proto.Marshal(resp)
if nil != marshalErr {