]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/warpzone/util_server.qc
Remove legacy Quake bbox expansion: map entities
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / warpzone / util_server.qc
index 5f1aebf490268365fdd74e3e6d1fd6da87417c2c..888112ce5e50ff0f57fa6e931226d1e6d6c20f21 100644 (file)
@@ -47,4 +47,10 @@ void WarpZoneLib_ExactTrigger_Init(entity this)
                setsize(this, this.mins, this.maxs);
        set_movetype(this, MOVETYPE_NONE);
        this.model = "";
+
+       // Xonotic and Nexuiz maps assume triggers will be activated by adjacent players
+       // this causes the touch func to be called in that case
+       // prior to sv_legacy_bbox_expand 0 DP always did this for SVQC and never for CSQC
+       if (!Q3COMPAT_COMMON)
+               setsize(this, this.mins - '1 1 1', this.maxs + '1 1 1');
 }