bugfix csqc contentstransition support
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4078 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8463ccc861
commit
1a309b95c4
1 changed files with 2 additions and 2 deletions
|
@ -4805,8 +4805,8 @@ qboolean CSQC_Event_ContentsTransition(world_t *w, wedict_t *ent, int oldwaterty
|
|||
if (ent->xv->contentstransition)
|
||||
{
|
||||
void *pr_globals = PR_globals(w->progs, PR_CURRENT);
|
||||
pr_global_struct->self = EDICT_TO_PROG(w->progs, ent);
|
||||
pr_global_struct->time = w->physicstime;
|
||||
*csqcg.self = EDICT_TO_PROG(w->progs, ent);
|
||||
*csqcg.time = w->physicstime;
|
||||
G_FLOAT(OFS_PARM0) = oldwatertype;
|
||||
G_FLOAT(OFS_PARM1) = newwatertype;
|
||||
PR_ExecuteProgram (w->progs, ent->xv->contentstransition);
|
||||
|
|
Loading…
Reference in a new issue