sepalani / MH3SP

Monster Hunter 3 (~tri) Server Project
GNU Affero General Public License v3.0
195 stars 19 forks source link

Fixed bug with incorrect player count in Servers #79

Closed kbarkevich closed 1 year ago

kbarkevich commented 1 year ago

Re-implemented logic based on the byte sent with the ReqShut packet, which, if 1, instructs the server to disconnect the player completely. It differentiates between when the client is switching from one server to another, and when the client is fully disconnecting from the game.

This fixes the bug where, when players disconnected from the screen that displays the list of gates in a server, they would not be removed from the list of players in the server. This resulted in an incorrect player count in the affected server.