]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/tturrets/system/system_misc.qc
Replace `vector_[xyz]` with `vector.[xyz]` where possible
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / tturrets / system / system_misc.qc
index 3fdd5eb1eb040e815a8e6edaa216b2b4d70510f3..8a1d2123a93a130606645c1d3b1b9c453ccd6373 100644 (file)
@@ -83,11 +83,11 @@ vector angleofs(entity from, entity to)
     v_res = vectoangles(v_res);
     v_res = v_res - from.angles;
 
-    if (v_res_x < 0)   v_res_x += 360;
-    if (v_res_x > 180)         v_res_x -= 360;
+    if (v_res.x < 0)   v_res.x += 360;
+    if (v_res.x > 180)         v_res.x -= 360;
 
-    if (v_res_y < 0)   v_res_y += 360;
-    if (v_res_y > 180)         v_res_y -= 360;
+    if (v_res.y < 0)   v_res.y += 360;
+    if (v_res.y > 180)         v_res.y -= 360;
 
     return v_res;
 }
@@ -100,11 +100,11 @@ vector angleofs3(vector from, vector from_a, entity to)
     v_res = vectoangles(v_res);
     v_res = v_res - from_a;
 
-    if (v_res_x < 0)   v_res_x += 360;
-    if (v_res_x > 180)         v_res_x -= 360;
+    if (v_res.x < 0)   v_res.x += 360;
+    if (v_res.x > 180)         v_res.x -= 360;
 
-    if (v_res_y < 0)   v_res_y += 360;
-    if (v_res_y > 180)         v_res_y -= 360;
+    if (v_res.y < 0)   v_res.y += 360;
+    if (v_res.y > 180)         v_res.y -= 360;
 
     return v_res;
 }