]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix an issue that's been around since the beginning of this branch
authorMario <zacjardine@y7mail.com>
Fri, 31 Jul 2015 14:37:26 +0000 (00:37 +1000)
committerMario <zacjardine@y7mail.com>
Fri, 31 Jul 2015 14:37:26 +0000 (00:37 +1000)
qcsrc/client/player_skeleton.qc
qcsrc/common/viewloc.qc

index 1d67e171ca667fa225e83644c7660254a60055af..4039c905c1f135f3afea1e2e6d1e76d7c65947c5 100644 (file)
@@ -47,7 +47,7 @@ void skeleton_loadinfo(entity e)
        }
        else
                dprint("No model parameters for ", e.model, "\n");
-       dprint(e.model, " uses ", ftos(e.bone_upperbody), " ", ftos(e.fixbone), "\n");
+       //dprint(e.model, " uses ", ftos(e.bone_upperbody), " ", ftos(e.fixbone), "\n");
        get_model_parameters(string_null, 0);
        e.skeleton_info_modelindex = e.modelindex;
        e.skeleton_info_skin = e.skin;
index 60a25330635ed89b32311e7ee065a924d5bccddf..ebcdc05c600218caab48bbbaa02a0f3567a96848 100644 (file)
@@ -29,9 +29,9 @@ void viewloc_PlayerPhysics()
                backward = vectoangles(normalize(level_start - level_end));
 
                if(self.movement_x < 0) // left
-                       self.angles = backward;
+                       self.angles_y = backward_y;
                if(self.movement_x > 0) // right
-                       self.angles = forward;
+                       self.angles_y = forward_y;
 
                if(oldmovement_x > 0)
 #ifdef CSQC
@@ -146,9 +146,9 @@ void viewloc_SetViewLocation()
                backward = vectoangles(normalize(vec_to_max(position_b, position_a) - vec_to_min(position_b, position_a)));
                
                if(input_movevalues_y < 0) // left
-                       view.angles = backward;
+                       view.angles_y = backward_y;
                if(input_movevalues_y > 0) // favour right
-                       view.angles = forward;
+                       view.angles_y = forward_y;
 
                setproperty(VF_CL_VIEWANGLES, view.angles);
        }