From: Mario Date: Mon, 2 Jan 2017 08:21:52 +0000 (+1000) Subject: Allow multiple traces through the same warpzone, let the recursive warpzone lightshow... X-Git-Tag: xonotic-v0.8.2~330 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b91d9d68c7d5014a24340d1981c9e196506fb7f3;p=xonotic%2Fxonotic-data.pk3dir.git Allow multiple traces through the same warpzone, let the recursive warpzone lightshows begin! --- diff --git a/qcsrc/lib/warpzone/common.qc b/qcsrc/lib/warpzone/common.qc index 5a3929e1e..78d51cf0b 100644 --- a/qcsrc/lib/warpzone/common.qc +++ b/qcsrc/lib/warpzone/common.qc @@ -298,13 +298,13 @@ void WarpZone_TraceBox_ThroughZone(vector org, vector mi, vector ma, vector end, } break; } - if(trace_ent == wz) + /*if(trace_ent == wz) { // FIXME can this check be removed? Do we really need it? LOG_TRACE("I transformed into the same zone again, wtf, aborting the trace"); trace_ent = NULL; break; - } + }*/ wz = trace_ent; if(!WarpZone_trace_firstzone) WarpZone_trace_firstzone = wz;