]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
DP networks velocity already, so we don't have to
authorRudolf Polzer <divverent@xonotic.org>
Sun, 13 Nov 2011 14:58:27 +0000 (15:58 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 13 Nov 2011 14:58:27 +0000 (15:58 +0100)
qcsrc/common/csqcmodel.qc

index 4ff53d4db4b44c0fcb51d7f61edfdb8d101e9f38..2108044954a9a4380b4d331aa8014b8ff10a2f8b 100644 (file)
@@ -7,9 +7,6 @@
        PROPERTY(1, ReadCoord, WriteCoord, origin_x) \
        PROPERTY(1, ReadCoord, WriteCoord, origin_y) \
        PROPERTY(1, ReadCoord, WriteCoord, origin_z) \
-       PROPERTY(1, ReadCoord, WriteCoord, velocity_x) \
-       PROPERTY(1, ReadCoord, WriteCoord, velocity_y) \
-       PROPERTY(1, ReadCoord, WriteCoord, velocity_z) \
        PROPERTY(2, ReadAngle, WriteAngle, angles_x) \
        PROPERTY(2, ReadAngle, WriteAngle, angles_y) \
        PROPERTY(2, ReadAngle, WriteAngle, angles_z) \
@@ -182,7 +179,7 @@ void CSQCModel_SetCamera()
                {
                        vector o, v;
                        o = self.origin;
-                       v = self.velocity;
+                       v = pmove_vel; // TRICK: pmove_vel is set by the engine when we get here. No need to network velocity
                        self.status = 2;
                        PredictTo(servercommandframe + 1);
                        SetPredictionError(o - self.origin);