did I forget to commit this? did I need to? oops.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4309 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-04-09 01:04:43 +00:00
parent 6ddd50e769
commit a5ac2e9a9d
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
//with addons, the engine only tracks one set of globals for most things.
//thus we use pointers in the addon to refer to that set of globals.
//this avoids having to make things shared, and having to pay for every transition.
vector *ptr_trace_endpos;
#define trace_endpos (*ptr_trace_endpos)
vector *ptr_trace_plane_normal;
#define trace_plane_normal (*ptr_trace_plane_normal)
entity *ptr_self;
#define self (*ptr_self)
void() csfixups =
{
ptr_trace_endpos = (vector*)externvalue(0, "&trace_endpos");
ptr_trace_plane_normal = (vector*)externvalue(0, "&trace_plane_normal");
ptr_self = (entity*)externvalue(0, "&self");
};