X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fwarpzonelib%2Fclient.qc;h=e0bb6434584efb034b554b9985febc3ff39a8280;hb=d444a32fddce0912e10b02361b5ea5b89ffbd857;hp=7b9ac0c095e78f576f672cc91d7b08f2d7384fe0;hpb=ba0988ca930f50286f8cf3b6c114ebc6584964af;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/warpzonelib/client.qc b/qcsrc/warpzonelib/client.qc index 7b9ac0c09..e0bb64345 100644 --- a/qcsrc/warpzonelib/client.qc +++ b/qcsrc/warpzonelib/client.qc @@ -1,9 +1,10 @@ +#include "client.qh" +#include "common.qh" + #if defined(CSQC) - #include "../dpdefs/csprogsdefs.qc" - #include "common.qh" - #include "client.qh" #include "../client/autocvars.qh" #include "../csqcmodellib/cl_model.qh" + #include "../dpdefs/csprogsdefs.qh" #elif defined(MENUQC) #elif defined(SVQC) #endif @@ -151,9 +152,9 @@ void WarpZone_Teleported_Read(float isnew) { vector v; self.classname = "warpzone_teleported"; - v_x = ReadCoord(); - v_y = ReadCoord(); - v_z = ReadCoord(); + v.x = ReadCoord(); + v.y = ReadCoord(); + v.z = ReadCoord(); if(!isnew) return; self.warpzone_transform = v; @@ -194,12 +195,12 @@ vector WarpZone_FixNearClip(vector o, vector c0, vector c1, vector c2, vector c3 entity e; float pd; - mi_x = min(o.x, c0_x, c1_x, c2_x, c3_x); - ma_x = max(o.x, c0_x, c1_x, c2_x, c3_x); - mi_y = min(o.y, c0_y, c1_y, c2_y, c3_y); - ma_y = max(o.y, c0_y, c1_y, c2_y, c3_y); - mi_z = min(o.z, c0_z, c1_z, c2_z, c3_z); - ma_z = max(o.z, c0_z, c1_z, c2_z, c3_z); + mi.x = min(o.x, c0_x, c1_x, c2_x, c3_x); + ma.x = max(o.x, c0_x, c1_x, c2_x, c3_x); + mi.y = min(o.y, c0_y, c1_y, c2_y, c3_y); + ma.y = max(o.y, c0_y, c1_y, c2_y, c3_y); + mi.z = min(o.z, c0_z, c1_z, c2_z, c3_z); + ma.z = max(o.z, c0_z, c1_z, c2_z, c3_z); e = WarpZone_Find(mi, ma); if(e)