Skip to content
Success

Changes

Summary

  1. Source: Replace queue with double linked list (commit: 5efe976) (details)
  2. Source: Remove global compressed map (commit: 6ac794c) (details)
Commit 5efe97619cf72324e65b28eb673089507ea12b5d by 16738302+Haxk20
Source: Replace queue with double linked list

In our implementation the queue was either way a linked list
so there is no need to keep our own implementation.

This also sorta fixes few memory issues that were happening with
our implementation of queue.
(commit: 5efe976)
The file was modified Source/Server/Server.c (diff)
The file was modified Source/Util/CMakeLists.txt (diff)
The file was modified Source/Server/Map.c (diff)
The file was modified Source/Util/Compress.c (diff)
The file was modified Source/Server/Packets/MapChunk.c (diff)
The file was removedSource/Util/Queue.c
The file was modified Source/Util/Queue.h (diff)
Commit 6ac794c3e6f6d444865712620bc1e7a4523124f0 by 16738302+Haxk20
Source: Remove global compressed map

Until now we had a weird system in place where
we would compress the map globally and then
once a player joined compress it again regardless.
Also it was possible to have some weird memory behaviour
to occur which we ofcourse do not want.

This makes the map PER PLAYER. So each player compresses the map.
The main advantage being that there is 0 collisions between map loading
for players.
(commit: 6ac794c)
The file was modified Source/Server/Map.c (diff)
The file was modified Source/Server/Player.c (diff)
The file was modified Source/Server/Packets/MapChunk.c (diff)
The file was modified Source/Server/Structs/MapStruct.h (diff)
The file was modified Source/Server/Structs/PlayerStruct.h (diff)
The file was modified Source/Util/Queue.h (diff)
The file was modified Source/Server/Server.c (diff)
The file was modified Source/Server/Master.c (diff)
The file was modified Source/Server/Packets/MapStart.c (diff)