maji-git / multiplay-core

Develop Online, Multiple Controller and solo multiplayer game at once!
MIT License
129 stars 7 forks source link

Player Index Duplicates are possible #18

Closed maji-git closed 4 months ago

maji-git commented 5 months ago

The Issue There seems to be a bug with player index, happens when player leaves the game. When new player join after that, player index duplicate could happen (like having P2 at the same time)

Expected Behavior New player should be assigned to lowest available player index. For example, if P2 left, new player could be assign to P2 instead. Or either this behavior should be configurable by the developer.

maji-git commented 4 months ago

Should be fixed now with this commit https://github.com/maji-git/multiplay-core/commit/9e04b53801347c05bec0423bb8094962f5607640