X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fpathlib%2Fmovenode.qc;h=4a3bfe35c5bee6ba18262a33eff34e3f3a95bc11;hb=d492869ab1f18e05121529b7bcffcb637d13994c;hp=52d0005a1efb583aa51887f2da9605918f7e5954;hpb=490a31934aa67cc7de5299a4d3f625d5271f8583;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/pathlib/movenode.qc b/qcsrc/server/pathlib/movenode.qc index 52d0005a1..4a3bfe35c 100644 --- a/qcsrc/server/pathlib/movenode.qc +++ b/qcsrc/server/pathlib/movenode.qc @@ -77,7 +77,7 @@ void a_think(entity this) { te_lightning1(this,this.origin, this.pos1); if(this.cnt < time) - remove(this); + delete(this); else this.nextthink = time + 0.2; } @@ -87,7 +87,7 @@ vector pathlib_walknode(entity this, vector start, vector end, float doedge) vector direction,point,last_point,s,e; float steps, distance, i; - LOG_TRACE("Walking node from ", vtos(start), " to ", vtos(end), "\n"); + LOG_TRACE("Walking node from ", vtos(start), " to ", vtos(end)); pathlib_movenode_goodnode = 0; @@ -104,12 +104,12 @@ vector pathlib_walknode(entity this, vector start, vector end, float doedge) a = spawn(); setthink(a, a_think); a.nextthink = time; - setorigin(a,start + movenode_stepup); + setorigin(a, start + movenode_stepup); a.pos1 = trace_endpos; //start - movenode_maxdrop a.cnt = time + 10; - LOG_TRACE("I cant walk on air!\n"); + LOG_TRACE("I cant walk on air!"); return trace_endpos; }