]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - dpdefs/dpextensions.qc
document autocvar _x, _y, _z issue
[xonotic/darkplaces.git] / dpdefs / dpextensions.qc
index c49f6feb95991b8a8a7495a76b7ca83882e98826..7602384076157d2c8c656e4a54ef93572cc1a766 100644 (file)
@@ -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