]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove sv_gameplayfix_unstickplayers 2 as it is no longer necessary
authorMario <mario.mario@y7mail.com>
Sun, 9 Oct 2022 11:49:48 +0000 (21:49 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 9 Oct 2022 11:49:48 +0000 (21:49 +1000)
qcsrc/common/physics/movetypes/movetypes.qc
qcsrc/common/physics/movetypes/walk.qc

index 48aa9dd106ca24f744de5e5f66d2307c6550e127..93cf2a4d31cd0f4951d81913191fca1d52d6e6fc 100644 (file)
@@ -782,15 +782,11 @@ void _Movetype_Physics_ClientFrame(entity this, float movedt)
                        this.angles = this.angles + movedt * this.avelocity;
                        break;
                case MOVETYPE_STEP:
-                       if (GAMEPLAYFIX_UNSTICKPLAYERS(this) == 2)
-                               _Movetype_CheckStuck(this);
                        _Movetype_Physics_Step(this, movedt);
                        break;
                case MOVETYPE_WALK:
                case MOVETYPE_FLY:
                case MOVETYPE_FLY_WORLDONLY:
-                       if (movedt > 0 && GAMEPLAYFIX_UNSTICKPLAYERS(this) == 2)
-                               _Movetype_CheckStuck(this);
                        _Movetype_Physics_Walk(this, movedt);
                        break;
                case MOVETYPE_TOSS:
index da6d4cfc364fb45f87fee5390b128ce8b51cb80b..babb38ca4f7c02d966f460703af352826ce6c56d 100644 (file)
@@ -6,7 +6,7 @@ void _Movetype_Physics_Walk(entity this, float dt)  // SV_WalkMove
        if (dt <= 0)
                return;
 
-       if (GAMEPLAYFIX_UNSTICKPLAYERS(this) == 1)
+       if (GAMEPLAYFIX_UNSTICKPLAYERS(this))
                _Movetype_CheckStuck(this);
 
        bool applygravity = (!_Movetype_CheckWater(this) && this.move_movetype == MOVETYPE_WALK && !(this.flags & FL_WATERJUMP));