From e6f0fe8ed1ec6795be717356b86ccee8856b0fba Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Sat, 23 Sep 2017 06:14:23 +0200 Subject: [PATCH] manually fix viewloc --- qcsrc/common/viewloc.qc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/qcsrc/common/viewloc.qc b/qcsrc/common/viewloc.qc index d6d7d9fac..e20b660e5 100644 --- a/qcsrc/common/viewloc.qc +++ b/qcsrc/common/viewloc.qc @@ -36,25 +36,26 @@ void viewloc_PlayerPhysics(entity this) if(PHYS_CS(this).movement_x > 0) // right this.angles_y = forward_y; - if(old_movement_x > 0) + if(old_movement_x > 0) { #ifdef CSQC input_angles_x = #endif this.v_angle_x = this.angles_x = -50; - else if(old_movement_x < 0) + } else if(old_movement_x < 0) { #ifdef CSQC input_angles_x = #endif this.v_angle_x = this.angles_x = 50; + } //if(!PHYS_INPUT_BUTTON_CROUCH(this) && !IS_DUCKED(this)) #ifdef SVQC //PHYS_INPUT_BUTTON_CROUCH(this) = (old_movement_x < 0); - if (old_movement.x < 0) + if (old_movement.x < 0) { PHYS_INPUT_BUTTON_CROUCH(this) = true; + } #elif defined(CSQC) - if (old_movement.x < 0) - { + if (old_movement.x < 0) { input_buttons |= BIT(4); this.flags |= FL_DUCKED; } -- 2.39.2