]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix entity positioning of QC MOVETYPE_FOLLOW
authorMario <zacjardine@y7mail.com>
Thu, 17 Dec 2020 16:53:18 +0000 (02:53 +1000)
committerMario <zacjardine@y7mail.com>
Thu, 17 Dec 2020 16:53:18 +0000 (02:53 +1000)
qcsrc/common/physics/movetypes/follow.qc

index ba33be9861dcd61e346126ce4bf22ada2e0fbab0..9c5468fa11e05a22f7f49c2f6c805d28da7c7d42 100644 (file)
@@ -22,8 +22,8 @@ void _Movetype_Physics_Follow(entity this) // SV_Physics_Follow
                ang_x = -e.angles_x;
                makevectors(ang);
                this.origin_x = v_x * v_forward_x + v_y * v_forward_y + v_z * v_forward_z + e.origin_x;
-               this.origin_x = v_x * v_right_x + v_y * v_right_y + v_z * v_right_z + e.origin_y;
-               this.origin_x = v_x * v_up_x + v_y * v_up_y + v_z * v_up_z + e.origin_z;
+               this.origin_y = v_x * v_right_x + v_y * v_right_y + v_z * v_right_z + e.origin_y;
+               this.origin_z = v_x * v_up_x + v_y * v_up_y + v_z * v_up_z + e.origin_z;
        }
 
        this.angles = e.angles + this.v_angle;