Skip to content
Failed

Changes

Summary

  1. Server: Sort player hash map as player joins and leaves (commit: 025a947) (details)
  2. Packets: WorldUpdate.c: Include ALL players in world update (commit: 43103a2) (details)
Commit 025a947e2adbb3ae188993ccc9dde2de425f06b4 by 16738302+Haxk20
Server: Sort player hash map as player joins and leaves

We need the hash map to be sorted for some functions
and this is the way where the least amount of sorting
is required.
(commit: 025a947)
The file was modified Source/Server/Server.c (diff)
The file was modified Source/Server/Player.h (diff)
The file was modified Source/Server/Player.c (diff)
Commit 43103a219bd2bdff4efcc2f42dcb576369f85dd3 by 16738302+Haxk20
Packets: WorldUpdate.c: Include ALL players in world update

When we switched to hash map one thing i forgot
to take into account was the fact that HASH_ITER
goes trough only the existing players. This is very
wrong. All players have to be sent and those which
do not exist should have all data 0.
(commit: 43103a2)
The file was modified Source/Server/Packets/WorldUpdate.c (diff)