X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fpathlib%2Fdebug.qc;h=4f73b24733bcbf75714a07a33db840cb4e9bc8b6;hb=bb80a6aba067167c6ef8d5f3465f03bd34142fa2;hp=d432221f25fe3bf9c2e11c4bf9d5bd8a6343c60f;hpb=3b2bc1bdee04f4c454279bf14ac8ed6b37c6ddb5;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/pathlib/debug.qc b/qcsrc/server/pathlib/debug.qc index d432221f2..4f73b2473 100644 --- a/qcsrc/server/pathlib/debug.qc +++ b/qcsrc/server/pathlib/debug.qc @@ -65,19 +65,19 @@ void pathlib_showsquare2(entity node ,vector ncolor,float align) } } -void pathlib_showsquare(vector where,float goodsquare,float lifetime) +void pathlib_showsquare(vector where,float goodsquare,float _lifetime) { entity s; - if(!lifetime) - lifetime = time + 30; + if(!_lifetime) + _lifetime = time + 30; else - lifetime += time; + _lifetime += time; s = spawn(); s.alpha = 0.25; s.think = SUB_Remove; - s.nextthink = lifetime; + s.nextthink = _lifetime; s.scale = pathlib_gridsize / 512.001; s.solid = SOLID_NOT; @@ -95,19 +95,19 @@ void pathlib_showsquare(vector where,float goodsquare,float lifetime) setorigin(s,where); } -void pathlib_showedge(vector where,float lifetime,float rot) +void pathlib_showedge(vector where,float _lifetime,float rot) { entity e; - if(!lifetime) - lifetime = time + 30; + if(!_lifetime) + _lifetime = time + 30; else - lifetime += time; + _lifetime += time; e = spawn(); e.alpha = 0.25; e.think = SUB_Remove; - e.nextthink = lifetime; + e.nextthink = _lifetime; e.scale = pathlib_gridsize / 512; e.solid = SOLID_NOT; setorigin(e,where);