X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fpathlib%2Fdebug.qc;h=5c97cf7ac41575adba77f604d88399f000597d95;hb=a838c2e00ecdfff0ca1665e1bf74e617d7aebc41;hp=64ce9da0289b935cb96f71f88ca7b25d2b0b0ee2;hpb=cb78214cf1252fa80df3490c0cd3d41bae72bbb8;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/pathlib/debug.qc b/qcsrc/server/pathlib/debug.qc index 64ce9da02..5c97cf7ac 100644 --- a/qcsrc/server/pathlib/debug.qc +++ b/qcsrc/server/pathlib/debug.qc @@ -1,3 +1,4 @@ +#include "../pathlib.qh" #ifdef TURRET_DEBUG void mark_error(vector where,float lifetime); @@ -24,7 +25,7 @@ void path_dbg_think() void __showpath2_think() { - #ifdef TURRET_DEBUG + #ifdef TURRET_DEBUG mark_info(self.origin,1); #endif if(self.path_next) @@ -65,19 +66,21 @@ void pathlib_showsquare2(entity node ,vector ncolor,float align) } } -void pathlib_showsquare(vector where,float goodsquare,float lifetime) +void SUB_Remove(); + +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 +98,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);