]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_phys.c
Fixed bug where .contentstransition QC field function was not assigning the self...
[xonotic/darkplaces.git] / 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");
                }