X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Ft_plats.qc;h=97ae43e1e838d8129ea1c1435c54d86b12ea52f9;hp=9ca98afb897e361bce33687e6b721af5f115c1bb;hb=6a28c11c8abd729c7f95ad7050d204aa2453d2ff;hpb=265b681e0fb49239df1bfc431a903f66244a3172 diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index 9ca98afb8..97ae43e1e 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -336,8 +336,8 @@ void train_wait() void train_next() { - entity targ, cp; - vector cp_org; + entity targ, cp = world; + vector cp_org = '0 0 0'; targ = find(world, targetname, self.target); self.target = targ.target; @@ -348,8 +348,6 @@ void train_next() cp = find(world, targetname, targ.curvetarget); // get its second target (the control point) cp_org = cp.origin - self.view_ofs; // no control point found, assume a straight line to the destination } - else - cp = world; // no cp } if (self.target == "") objerror("train_next: no next target");