Skip to content
Success

Changes

Summary

  1. Exit gracefully on SIGINT (Ctrl+C) (commit: 8fe7277) (details)
  2. Disable role if it has no password (commit: aaf215e) (details)
  3. Use IP Union instead of two IP variables (commit: c1207c2) (details)
  4. Types.h: Make LOG_X compatible with Clang (commit: 02da116) (details)
  5. Types.h: Make LOGF__INT support different files (commit: bc2582b) (details)
  6. Server: Add LOG_STATUS when exiting and remove TODOs by PR. (commit: 6e70277) (details)
  7. Server.c: Remove LOG_STATUS on CTRL+c (commit: 904a01e) (details)
  8. Structs.h: Replace running signal for sig_atomic_t instead of uint8 (commit: e094e66) (details)
  9. Packets.c: Stupid workaround for getting stuck (commit: 566645b) (details)
  10. Server: Get player unstuck (commit: 0b77522) (details)
  11. Packets.c: Make warnings more correct (commit: 3cea342) (details)
  12. Packets.c: Correct message sizes (commit: 53fcf9e) (details)
Commit 8fe7277adce5b549e55e9d4f34ee4086b1fb4b67 by 6745157+rndtrash
Exit gracefully on SIGINT (Ctrl+C)
(commit: 8fe7277)
The file was modified Source/Structs.h (diff)
The file was modified Source/Server.c (diff)
Commit aaf215ee1f97c69a7505f416f0c56d42923699ab by 6745157+rndtrash
Disable role if it has no password
(commit: aaf215e)
The file was modified Source/Commands.c (diff)
Commit c1207c2033c9b994d3d2e04718210a0156e35f01 by 6745157+rndtrash
Use IP Union instead of two IP variables
(commit: c1207c2)
The file was modified Source/Commands.c (diff)
Commit 02da116c033d5171df43bb439bb8cb1268dafbd1 by 16738302+Haxk20
Types.h: Make LOG_X compatible with Clang

The previously used ##__VA_ARGS__ is used
in macros when normal __VA_ARGS__ cant be.
Such as removing remaining , if arguments
are empty.

But ## is a GNU extension and Clang would
complain about that fact with a warning.
And since we have warnings as errors.
Clang would create an error.

Thus we have to make variadic macros compatible
with C99 standart and not use ##.

This cant be done in a simple manner and thus an
internal (INT) LOG functions have to be used.
One for printf and second for fprintf.
This way we can workaround the limitation
and hope that __VA_OPT__ becomes available
in the upcoming C standart release which would
resolve this hacky workaround.
(commit: 02da116)
The file was modified Source/Util/Types.h (diff)
Commit bc2582b16ac9e7b35f0bd7e48b1ec4aa3b31ac36 by 16738302+Haxk20
Types.h: Make LOGF__INT support different files
(commit: bc2582b)
The file was modified Source/Util/Types.h (diff)
Commit 6e702777bd4b99b71596f12d39ee5fe2faad322c by 16738302+Haxk20
Server: Add LOG_STATUS when exiting and remove TODOs by PR.
(commit: 6e70277)
The file was modified Source/Server.c (diff)
The file was modified Source/Structs.h (diff)
Commit 904a01ee7ae814e56e683cfc7efa833c81707775 by 16738302+Haxk20
Server.c: Remove LOG_STATUS on CTRL+c

We already had this. I just forgot
(commit: 904a01e)
The file was modified Source/Server.c (diff)
Commit e094e6612bf71889dd9b5bf7a67e444d694bd7cf by 16738302+Haxk20
Structs.h: Replace running signal for sig_atomic_t instead of uint8
(commit: e094e66)
The file was modified Source/Structs.h (diff)
Commit 566645b44cd365146ee87c049eb449af89e4e302 by 16738302+Haxk20
Packets.c: Stupid workaround for getting stuck

For now lets work around the fact when user gets stuck
by moving them up 1 blocks.

This is done very quickly. A more proper solution will come later.
(commit: 566645b)
The file was modified Source/Packets.c (diff)
Commit 0b77522c23713e261a4e1f5e21fef2c550662ab9 by 16738302+Haxk20
Server: Get player unstuck

If a player is baricaded by other player
into blocks usually they would have to dig out these blocks
but that may not be fast enough.

If a player gets stuck like this (May be noclip)
try to find an block in 3x3 range where the player could
crouch if they were crouching or standing if they were
standing and set their position there if such a block is found.

If none is found it would set their position
to some block in team spawn.
(commit: 0b77522)
The file was modified Source/Packets.c (diff)
The file was modified Source/Protocol.h (diff)
The file was modified Source/Server.c (diff)
The file was modified Source/Protocol.c (diff)
Commit 3cea342bcbf63e957f52bab33ef2a87492a4d8a4 by 16738302+Haxk20
Packets.c: Make warnings more correct

If player is noclipping then their previous
position would most likely remain legit and
reset back to it.

Its more likely when player gets just stuck
to have their previous position not legit.
(commit: 3cea342)
The file was modified Source/Packets.c (diff)
Commit 53fcf9e3034fad067d65b212c4b8ffdda776e1f5 by 16738302+Haxk20
Packets.c: Correct message sizes
(commit: 53fcf9e)
The file was modified Source/Packets.c (diff)