]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Oh right, these cvars are backwards in the engine.
authorRudolf Polzer <divverent@xonotic.org>
Wed, 16 Oct 2013 06:17:51 +0000 (08:17 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 16 Oct 2013 06:18:22 +0000 (08:18 +0200)
qcsrc/warpzonelib/client.qc
qcsrc/warpzonelib/server.qc

index cd38e35f31ab705b707f3eed63e42b187e506dff..775eed4a1588d288f6a9271aa9ffa5e54e933a43 100644 (file)
@@ -157,7 +157,7 @@ void WarpZone_Teleported_Read(float isnew)
        if(!isnew)
                return;
        self.warpzone_transform = v;
-       setproperty(VF_CL_VIEWANGLES, WarpZone_TransformVAngles(self, getpropertyvec(VF_CL_VIEWANGLES), autocvar_in_pitch_min, autocvar_in_pitch_max));
+       setproperty(VF_CL_VIEWANGLES, WarpZone_TransformVAngles(self, getpropertyvec(VF_CL_VIEWANGLES), -autocvar_in_pitch_max, -autocvar_in_pitch_min));
        if(checkextension("DP_CSQC_ROTATEMOVES"))
                CL_RotateMoves(v);
                //CL_RotateMoves('0 90 0');
@@ -228,7 +228,7 @@ void WarpZone_FixPMove()
        if(e)
        {
                pmove_org = WarpZone_TransformOrigin(e, pmove_org);
-               input_angles = WarpZone_TransformVAngles(e, input_angles, autocvar_in_pitch_min, autocvar_in_pitch_max);
+               input_angles = WarpZone_TransformVAngles(e, input_angles, -autocvar_in_pitch_max, -autocvar_in_pitch_min);
        }
 }
 
@@ -252,7 +252,7 @@ void WarpZone_FixView()
        if(e)
        {
                org = WarpZone_TransformOrigin(e, org);
-               ang = WarpZone_TransformVAngles(e, ang, autocvar_in_pitch_min, autocvar_in_pitch_max);
+               ang = WarpZone_TransformVAngles(e, ang, -autocvar_in_pitch_max, -autocvar_in_pitch_min);
 #ifdef WORKAROUND_XON010
                dirty = 1;
 #endif
index 055faf801a0530bfe432ff29738b0ff3ca10f397..53f0f15c4f814c06df2b3edf989c01c9009f07ed 100644 (file)
@@ -57,7 +57,7 @@ float WarpZone_Teleport(entity wz, entity player, float f0, float f1)
        o10 = o1 = WarpZone_TransformOrigin(wz, o0);
        v1 = WarpZone_TransformVelocity(wz, v0);
        if not(IS_NOT_A_CLIENT(player))
-               a1 = WarpZone_TransformVAngles(wz, player.v_angle, player.cvar_in_pitch_min, player.cvar_in_pitch_max);
+               a1 = WarpZone_TransformVAngles(wz, player.v_angle, -player.cvar_in_pitch_max, -player.cvar_in_pitch_min);
        else
                a1 = WarpZone_TransformAngles(wz, a0);
 
@@ -897,7 +897,7 @@ void WarpZone_PlayerPhysics_FixVAngle(void)
        if(self.v_angle_z <= 360) // if not already adjusted
        if(time - self.ping * 0.001 < self.warpzone_teleport_time)
        {
-               self.v_angle = WarpZone_TransformVAngles(self.warpzone_teleport_zone, self.v_angle, self.cvar_in_pitch_min, self.cvar_in_pitch_max);
+               self.v_angle = WarpZone_TransformVAngles(self.warpzone_teleport_zone, self.v_angle, -self.cvar_in_pitch_max, -self.cvar_in_pitch_min);
                self.v_angle_z += 720; // mark as adjusted
        }
 #endif