From fae3f808509f33714801bd1512f025cb6ddc18a4 Mon Sep 17 00:00:00 2001 From: dresk Date: Wed, 27 Jun 2007 07:40:57 +0000 Subject: [PATCH] Fixed bug where .contentstransition QC field function was not assigning the self entity to the entity experiencing the contents transition. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7455 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_phys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sv_phys.c b/sv_phys.c index 3a4a8b00..fdb597ca 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -523,6 +523,8 @@ int SV_CheckContentsTransition(prvm_edict_t *ent, const int nContents) PRVM_G_FLOAT(OFS_PARM0) = ent->fields.server->watertype; // New Contents PRVM_G_FLOAT(OFS_PARM1) = nContents; + // Assign Self + prog->globals.server->self = PRVM_EDICT_TO_PROG(ent); // Execute VM Function PRVM_ExecuteProgram(contentstransition->function, "contentstransition: NULL function"); } -- 2.39.2