a-blondel / mohh2-server

Server for Medal Of Honor Heroes 2
0 stars 0 forks source link

Players appears ingame while they are not #18

Closed a-blondel closed 3 months ago

a-blondel commented 4 months ago

This problem isn't easy to fix as there are multiple ways for a player to leave a game :

Some cases are already handled (when the UDP connection stops at least).
Given the use of the serverless patch, UDP is strictly client side, so the check neven happens.
The first thing to do is to also check for the glea (game leave) TCP packet, and end the session in database.

Later on, maybe we'll learn more on how to handle all cases effectively.