@@ -5410,7 +5410,7 @@ void HwDLL::InsertCommands()
54105410 auto playerCopy = HLStrafe::PlayerData (player); // Our copy that we will mess with.
54115411 auto traceFunc = std::bind (&HwDLL::PlayerTrace, this , std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, false );
54125412 auto pointContentsFunc = std::bind (*(ClientDLL::GetInstance ().pEngfuncs ->PM_PointContents ), std::placeholders::_1, nullptr );
5413- auto postype = GetPositionType (playerCopy, traceFunc, pointContentsFunc);
5413+ auto postype = GetPositionType (playerCopy, traceFunc, pointContentsFunc, HLStrafe:: MAX_SUPPORTED_VERSION );
54145414 if (ducktap && postype == HLStrafe::PositionType::GROUND ) {
54155415 if (!currentKeys.Duck .IsDown () && !playerCopy.InDuckAnimation ) {
54165416 // This should check against the next frame's origin but meh.
@@ -5433,15 +5433,15 @@ void HwDLL::InsertCommands()
54335433 playerCopy.InDuckAnimation = false ;
54345434 playerCopy.DuckTime = 0 ;
54355435
5436- auto nextPostype = HLStrafe::GetPositionType (playerCopy, traceFunc, pointContentsFunc);
5436+ auto nextPostype = HLStrafe::GetPositionType (playerCopy, traceFunc, pointContentsFunc, HLStrafe:: MAX_SUPPORTED_VERSION );
54375437 if (nextPostype == HLStrafe::PositionType::GROUND ) {
54385438 // Jumpbug if we're about to land.
54395439 Jump = true ;
54405440 Duck = false ;
54415441 }
54425442 } else {
54435443 auto vars = GetMovementVars ();
5444- auto nextPostype = HLStrafe::Move (playerCopy, vars, postype, vars.Maxspeed , traceFunc, pointContentsFunc);
5444+ auto nextPostype = HLStrafe::Move (playerCopy, vars, postype, vars.Maxspeed , traceFunc, pointContentsFunc, HLStrafe:: MAX_SUPPORTED_VERSION );
54455445 if (nextPostype == HLStrafe::PositionType::GROUND ) {
54465446 // Duck to prepare for the Jumpbug.
54475447 Duck = true ;
0 commit comments