Skip to content
Failed

Changes

Summary

  1. Protocol.c: Check if position is valid & visitedMap != NULL (commit: b2b208f) (details)
  2. Packets.c: Block CANT be negative & Dont pass int to float (commit: 1d16f43) (details)
  3. Protocol.c: Do not delete invalid blocks (commit: 7a54ba8) (details)
  4. Server.c: Drastically simplify reloading math for SMG and Rifle (commit: e1eed4d) (details)
  5. Server: Deprecate toRefill (commit: 269c099) (details)
Commit b2b208f3d7acf6ff02cd72c1bac9e31529c0ca0e by 16738302+Haxk20
Protocol.c: Check if position is valid & visitedMap != NULL
(commit: b2b208f)
The file was modified Source/Protocol.c (diff)
Commit 1d16f43dcd82aa6fe23cff1484ae26701ada571e by 16738302+Haxk20
Packets.c: Block CANT be negative & Dont pass int to float

First change is not passing int to float struct without
properly converting the variables and not checking
the poorly converted struct against valid position check

Second is actually using proper variable type of unsigned
int in place of int. Reasoning is simple. We cant have
negative block.
(commit: 1d16f43)
The file was modified Source/Packets.c (diff)
Commit 7a54ba8a68727da2e50b412a29e843cee72e1cfc by 16738302+Haxk20
Protocol.c: Do not delete invalid blocks

Can cause issues such as segfault.
There is a better way to solve this. But
for now this will do. Will be optimized later
and checked for edge cases
(commit: 7a54ba8)
The file was modified Source/Protocol.c (diff)
Commit e1eed4d9024ec1769583849dd93fde629a183f39 by 16738302+Haxk20
Server.c: Drastically simplify reloading math for SMG and Rifle
(commit: e1eed4d)
The file was modified Source/Server.c (diff)
Commit 269c099420b6ea57adc0f09adc026b716f6bbfca by 16738302+Haxk20
Server: Deprecate toRefill

It is no longer needed. And TBH never was.
Thats what i get for writing code way too late in night.
(commit: 269c099)
The file was modified Source/Structs.h (diff)
The file was modified Source/Protocol.c (diff)
The file was modified Source/Server.c (diff)
The file was modified Source/Packets.c (diff)