DarkflameUniverse / DarkflameServer

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

chore: optimize chat server reads and fix crash #1606

Closed EmosewaMC closed 1 month ago

EmosewaMC commented 6 months 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 5 months ago

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