From b1f59056402d0cf92555e17da792a5c69917126e Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 10 Jun 2012 16:45:08 +0000 Subject: [PATCH] sync dpdefs with xonotic git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11826 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=0f38083dbfae6d47a614b62d093d82f0b8a3e4a5 --- dpdefs/csprogsdefs.qc | 1 + dpdefs/dpextensions.qc | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dpdefs/csprogsdefs.qc b/dpdefs/csprogsdefs.qc index 2d376d4f..7b0644e3 100644 --- a/dpdefs/csprogsdefs.qc +++ b/dpdefs/csprogsdefs.qc @@ -1426,3 +1426,4 @@ vector gettaginfo_offset; vector gettaginfo_forward; vector gettaginfo_right; vector gettaginfo_up; +float checkpvs(vector viewpos, entity viewee) = #240; diff --git a/dpdefs/dpextensions.qc b/dpdefs/dpextensions.qc index 96f98350..0a550439 100644 --- a/dpdefs/dpextensions.qc +++ b/dpdefs/dpextensions.qc @@ -593,9 +593,11 @@ float(float a) tan = #475; // returns tangent value (which is simply sin(a)/cos( // string autocvar__cl_name; //NOTE: copying a string-typed autocvar to another variable/field, and then //changing the cvar or returning from progs is UNDEFINED. Writing to autocvar -//globals is UNDEFINED. Accessing autocvar globals after cvar_set()ing that -//cvar in the same frame is IMPLEMENTATION DEFINED (an implementation may -//either yield the previous, or the current, value). Whether autocvar globals, +//globals is UNDEFINED. Accessing autocvar globals after changing that cvar in +//the same frame by any means other than cvar_set() from the same QC VM is +//IMPLEMENTATION DEFINED (an implementation may either yield the previous, or +//the current, value). Changing them via cvar_set() in the same QC VM +//immediately must reflect on the autocvar globals. Whether autocvar globals, //after restoring a savegame, have the cvar's current value, or the original //value at time of saving, is UNDEFINED. Restoring a savegame however must not //restore the cvar values themselves. -- 2.39.2