]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
this was probably a workaround for something in the old broken code
authorMartin Taibr <taibr.martin@gmail.com>
Thu, 6 Oct 2016 13:13:39 +0000 (15:13 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Thu, 6 Oct 2016 13:13:39 +0000 (15:13 +0200)
i don't see how it's useful anymore

qcsrc/common/mutators/mutator/spawn_near_teammate/sv_spawn_near_teammate.qc

index 57021a9f9e4c96e6402c40713fba5ced6a786dd6..06f1eefd5cd9e49166936c74339b4300151773d9 100644 (file)
@@ -134,7 +134,7 @@ MUTATOR_HOOKFUNCTION(spawn_near_teammate, PlayerSpawn)
 
                                // 400 is about the height of a typical laser jump (in overkill)
                                // not traceline because we need space for the whole payer, not just his origin
-                               tracebox(horizontal_trace_endpos + '0 0 4', STAT(PL_MIN, NULL), STAT(PL_MAX, NULL), horizontal_trace_endpos - '0 0 400', MOVE_NORMAL, it);
+                               tracebox(horizontal_trace_endpos, STAT(PL_MIN, NULL), STAT(PL_MAX, NULL), horizontal_trace_endpos - '0 0 400', MOVE_NORMAL, it);
                                vector vectical_trace_endpos = trace_endpos;
                                te_lightning1(NULL, horizontal_trace_endpos, vectical_trace_endpos);
                                LOG_INFOF("      trace_fraction2 %f\n", trace_fraction);