aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/SharedDefines.h
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2021-02-21 17:29:09 +0100
committerGitHub <noreply@github.com>2021-02-21 17:29:09 +0100
commitf96aab2186d17ddd286fa42913f3f14e9562c4eb (patch)
treee06d165e7d1101c4521ffbda346efd1b147b9aee /src/server/shared/SharedDefines.h
parent69916138bdb61444c53acb059987e7b058bc175e (diff)
Core/Maps: Use a fixed offset instead of full collision height when retrieving floor Z (#26092)
Use a fixed offset 0.5f instead of full collision height when retrieving floor Z as a full collision height ended up on the floor above a few times. It makes more sense to cast the ray just a bit higher up than using a full collision height (which by default is 2.0f)
Diffstat (limited to 'src/server/shared/SharedDefines.h')
-rw-r--r--src/server/shared/SharedDefines.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/shared/SharedDefines.h b/src/server/shared/SharedDefines.h
index 66da2884e7f..63202d294fb 100644
--- a/src/server/shared/SharedDefines.h
+++ b/src/server/shared/SharedDefines.h
@@ -24,6 +24,7 @@
#include "SmartEnum.h"
float const GROUND_HEIGHT_TOLERANCE = 0.05f; // Extra tolerance to z position to check if it is in air or on ground.
+constexpr float Z_OFFSET_FIND_HEIGHT = 0.5f;
enum SpellEffIndex : uint8
{