Skip to content

Avoid Player Counter displaying "undefined"#1

Open
Marenthyu wants to merge 1 commit intobsmg:masterfrom
Marenthyu:fix-undefined-playersNum
Open

Avoid Player Counter displaying "undefined"#1
Marenthyu wants to merge 1 commit intobsmg:masterfrom
Marenthyu:fix-undefined-playersNum

Conversation

@Marenthyu
Copy link
Copy Markdown

As UpdatePlayerInfo is not sent when a room is empty, playersNum may be undefined and display incorrectly for the user.
GetRoomInfo is always sent and includes the player Number at 0 correctly and thus can be used to set the variable correctly.

…ted if the room is empty, resulting in "undefined Players" being displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant