From 6e3fae0c0bfc1356b07138cc5a8f9e8733bfd04d Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 15 Feb 2011 06:28:25 +0000 Subject: [PATCH] document autocvar _x, _y, _z issue git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10844 d7cf8633-e32d-0410-b094-e92efae38249 --- dpdefs/dpextensions.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dpdefs/dpextensions.qc b/dpdefs/dpextensions.qc index c49f6feb..76023840 100644 --- a/dpdefs/dpextensions.qc +++ b/dpdefs/dpextensions.qc @@ -596,6 +596,8 @@ float(float a) tan = #475; // returns tangent value (which is simply sin(a)/cos( //equivalent to the NULL value of the given data type, that is, the empty //string, 0, or '0 0 0'. However, when automatic cvar creation took place, a //warning is printed to the game console. +//NOTE: to prevent an ambiguity with float names for vector types, autocvar +//names MUST NOT end with _x, _y or _z! //DP_QC_CHANGEPITCH //idea: id Software -- 2.39.2