Skip to content

Commit c2e70e2

Browse files
committed
[ClientPlayer] Slightly reduce velocity in X/Z while jumping/falling.
1 parent 0a60a94 commit c2e70e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client/source/world/ClientPlayer.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ void ClientPlayer::updatePosition(const ClientWorld &world) {
112112
if (!Config::isNoClipEnabled)
113113
checkCollisions(world);
114114

115+
if (!Config::isFlyModeEnabled && m_velocity.y != 0) {
116+
m_velocity.x *= 0.75f;
117+
m_velocity.z *= 0.75f;
118+
}
119+
115120
m_x += m_velocity.x;
116121
m_y += m_velocity.y;
117122
m_z += m_velocity.z;

0 commit comments

Comments
 (0)