From bef50ed5ce173be54c9165fa1c0c62fae10bd8d0 Mon Sep 17 00:00:00 2001 From: Kamay Xutax Date: Fri, 23 Aug 2024 18:29:51 +0200 Subject: [PATCH] Moved viewoffset adjustement to shared code --- game/shared/cstrike/cs_gamemovement.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/game/shared/cstrike/cs_gamemovement.cpp b/game/shared/cstrike/cs_gamemovement.cpp index 885cd02e34..d5507d0846 100644 --- a/game/shared/cstrike/cs_gamemovement.cpp +++ b/game/shared/cstrike/cs_gamemovement.cpp @@ -366,7 +366,6 @@ void CCSGameMovement::PlayerMove() m_pCSPlayer->m_flVelocityModifier = 1.0; } -#if !defined(CLIENT_DLL) if ( m_pCSPlayer->IsAlive() ) { // Check if our eye height is too close to the ceiling and lower it. @@ -433,8 +432,7 @@ void CCSGameMovement::PlayerMove() player->SetViewOffset( VEC_DUCK_VIEW ); } } - } -#endif + } }