make the cameras actually work
authordiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sun, 28 Feb 2010 19:46:26 +0000 (19:46 +0000)
committerdiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sun, 28 Feb 2010 19:46:26 +0000 (19:46 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8729 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

data/qcsrc/warpzonelib/client.qc

index 075d4bb..c16fc89 100644 (file)
@@ -16,6 +16,7 @@ void WarpZone_Read(float isnew)
        self.maxs_x = ReadCoord();
        self.maxs_y = ReadCoord();
        self.maxs_z = ReadCoord();
+       self.scale = ReadByte() / 16;
        self.enemy.oldorigin_x = ReadCoord();
        self.enemy.oldorigin_y = ReadCoord();
        self.enemy.oldorigin_z = ReadCoord();
@@ -46,7 +47,7 @@ vector WarpZone_Camera_camera_transform(vector org, vector ang)
 {
        // a fixed camera view
        trace_endpos = self.oldorigin;
-       makevectors(self.angles);
+       makevectors(self.avelocity);
        return self.oldorigin;
 }
 
@@ -63,6 +64,7 @@ void WarpZone_Camera_Read(float isnew)
        self.maxs_x = ReadCoord();
        self.maxs_y = ReadCoord();
        self.maxs_z = ReadCoord();
+       self.scale = ReadByte() / 16;
        self.oldorigin_x = ReadCoord();
        self.oldorigin_y = ReadCoord();
        self.oldorigin_z = ReadCoord();