ZDoom / gzdoom

GZDoom is a feature centric port for all Doom engine games, based on ZDoom, adding an OpenGL renderer and powerful scripting capabilities
http://zdoom.org
GNU General Public License v3.0
2.33k stars 528 forks source link

Fixes for client network IDs #2528

Closed Boondorl closed 2 months ago

Boondorl commented 2 months ago

Fixed an off-by-one error on client IDs (these need to start at 1 as 0 is an invalid network ID). Morphing will now swap the client body's ID so it remains in the first 1 - MAXPLAYERS slots.

madame-rachelle commented 2 months ago

I do not know what @coelckers was planning to do with the network system in Raze or how he was going to manage that, but until he does a backend sync with Raze so that I have some idea what he had planned, I cannot properly check this PR.

coelckers commented 2 months ago

There's nothing specific planned for Raze, but if it gets used the player logic would be the same, i.e. it reserves MAXPLAYERS entries at the start of the value range for the active players.