From 28faf91ab8095bb30e48696cf51e2b925360d8b4 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Wed, 14 Jun 2023 23:03:56 +1000 Subject: [PATCH] trigger_viewloc: don't unset model field in spawnfunc Fixes collision detection failure in WarpZoneLib_BoxTouchesBrush() See: https://gitlab.com/xonotic/xonotic-data.pk3dir/-/merge_requests/1207 --- qcsrc/common/mapobjects/trigger/viewloc.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/mapobjects/trigger/viewloc.qc b/qcsrc/common/mapobjects/trigger/viewloc.qc index 4679e75f7..eb3ae7f4b 100644 --- a/qcsrc/common/mapobjects/trigger/viewloc.qc +++ b/qcsrc/common/mapobjects/trigger/viewloc.qc @@ -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); } -- 2.39.2