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:
parent
6ddd50e769
commit
a5ac2e9a9d
1 changed files with 20 additions and 0 deletions
20
quakec/csaddon/src/csfixups.qc
Normal file
20
quakec/csaddon/src/csfixups.qc
Normal 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");
|
||||
};
|
||||
|
Loading…
Reference in a new issue