]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
manually fix viewloc
authorMartin Taibr <taibr.martin@gmail.com>
Sat, 23 Sep 2017 04:14:23 +0000 (06:14 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Sat, 23 Sep 2017 04:14:23 +0000 (06:14 +0200)
qcsrc/common/viewloc.qc

index d6d7d9facfb2edc3f7f32c39138119723a47f5b0..e20b660e57dd773a3cf3b2d98a6c276fbfbfd8ad 100644 (file)
@@ -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;
                        }