From: divverent Date: Sun, 10 Jun 2012 16:45:08 +0000 (+0000) Subject: sync dpdefs with xonotic X-Git-Tag: xonotic-v0.7.0~130 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b1f59056402d0cf92555e17da792a5c69917126e;p=xonotic%2Fdarkplaces.git sync dpdefs with xonotic git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11826 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=0f38083dbfae6d47a614b62d093d82f0b8a3e4a5 --- 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.