From 1a309b95c4367c55297e1f94b5df0c93cf74675b Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 15 Jul 2012 05:24:21 +0000 Subject: [PATCH] bugfix csqc contentstransition support git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4078 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/pr_csqc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/pr_csqc.c b/engine/client/pr_csqc.c index c65906e3b..30d46b563 100644 --- a/engine/client/pr_csqc.c +++ b/engine/client/pr_csqc.c @@ -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);