DarkflameUniverse / DarkflameServer

The main repository for the Darkflame Universe Server Emulator project.
https://www.darkflameuniverse.org/
GNU Affero General Public License v3.0
629 stars 171 forks source link

chore: optimize chat server reads and fix crash #1606

Open EmosewaMC opened 1 month ago

EmosewaMC commented 1 month ago

Tested that players with valid names up to the usual 33 character max are still added to the player container Tested that you can still team with <= 4 players on a team Tested that chat server no longer crashes with a bad memberSize variable Verified that InsertPlayer is indeed much faster now and is no longer a slow point of ChatServer image

EmosewaMC commented 1 month ago

Also fixes an issue where, due to race conditions, a players name would be twice as long when logging into a world.