]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fixed bug where .contentstransition QC field function was not assigning the self...
authordresk <dresk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Jun 2007 07:40:57 +0000 (07:40 +0000)
committerdresk <dresk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 27 Jun 2007 07:40:57 +0000 (07:40 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7455 d7cf8633-e32d-0410-b094-e92efae38249

sv_phys.c

index 3a4a8b005e6e94bb66c847999b3eb47f99f5a26a..fdb597ca16972c635dc8f4cd04bd600af856f0f4 100644 (file)
--- 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");
                }