]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
trigger_viewloc: don't unset model field in spawnfunc
authorbones_was_here <bones_was_here@xonotic.au>
Wed, 14 Jun 2023 13:03:56 +0000 (23:03 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Wed, 14 Jun 2023 13:03:56 +0000 (23:03 +1000)
Fixes collision detection failure in WarpZoneLib_BoxTouchesBrush()

See: https://gitlab.com/xonotic/xonotic-data.pk3dir/-/merge_requests/1207

qcsrc/common/mapobjects/trigger/viewloc.qc

index 4679e75f7f0f521c4248676365578de1e10b6851..eb3ae7f4b67e6ba3a07ee3b1d1c9d6dc271e7c8b 100644 (file)
@@ -115,7 +115,7 @@ spawnfunc(trigger_viewlocation)
        // we won't check target2 here yet, as it may not even need to exist
        if(this.target == "") { LOG_INFO("^1FAIL!"); delete(this); return; }
 
-       EXACTTRIGGER_INIT;
+       WarpZoneLib_ExactTrigger_Init(this, false);
        InitializeEntity(this, viewloc_init, INITPRIO_FINDTARGET);
 }