Skip to content
Failed

Changes

Summary

  1. PositionChecks.c: Rewrite valid_player_pos (commit: 9263bba) (details)
  2. PositionChecks.c: Also check for solid head (commit: 24fd571) (details)
Commit 9263bba2a5c566f634d257133821d921cb8d1b40 by 16738302+Haxk20
PositionChecks.c: Rewrite valid_player_pos

This does allow for wider range of things then the previous
function but at the same time its faster and FAR easier to
read.

Previous implementation followed the principle that values below 0
were not allowed unless specific situation occured.
While this was great it did leave a lot of room for error and thus
we decided to allow the full range of motion for the player
without the need for specific situation (Other then water
interaction and crouching)
(commit: 9263bba)
The file was modified Source/Util/Checks/PositionChecks.c (diff)
Commit 24fd571762bb40f76488ec8e8b6950fa815bf3a8 by 16738302+Haxk20
PositionChecks.c: Also check for solid head

No reason to leave this check out.
There is no real situation where player head should be stuck
inside a solid block.
And players blocking another players in is not a valid situation.
Those situations should be not allowed in clients either way.
(commit: 24fd571)
The file was modified Source/Util/Checks/PositionChecks.c (diff)