Skip to content

Commit

Permalink
Fix Player Info response.
Browse files Browse the repository at this point in the history
  • Loading branch information
jchv committed Jul 5, 2023
1 parent 1f995b6 commit c00e573
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions game/packet/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ type ServerPlayerInfoResponse struct {
ServerMessage_
Request uint8
UserID uint32
RoomID uint16
Info pangya.PlayerInfo
Unknown uint32
}
Expand Down
1 change: 1 addition & 0 deletions game/server/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func (c *Conn) Handle(ctx context.Context) error {
c.SendMessage(ctx, &gamepacket.ServerPlayerInfoResponse{
Request: t.Request,
UserID: t.UserID,
RoomID: 0xFFFF,
Info: playerInfoFromDB(&player, 0), // TODO: set conn id somehow
})
c.SendMessage(ctx, &gamepacket.ServerPlayerCharacterResponse{
Expand Down

0 comments on commit c00e573

Please sign in to comment.