new command looplisti
same as looplist, but it automatically counts the loops in "i", starting with 0. Example: a = [u v w] ; b = [x y z] looplisti $a m [echo $m (at $b $i) $i] u x 0 v y 1 w z 2 DOCREF looplisti
This commit is contained in:
@@ -1051,7 +1051,7 @@ void preparectf(bool cleanonly=false)
|
||||
if(e.type==CTF_FLAG)
|
||||
{
|
||||
e.spawned = true;
|
||||
if(e.attr2>=2) { conoutf("\f3invalid ctf-flag entity (%i)", i); e.attr2 = 0; }
|
||||
if(e.attr2>=2) { conoutf("\f3invalid ctf-flag entity (%d)", i); e.attr2 = 0; }
|
||||
flaginfo &f = flaginfos[e.attr2];
|
||||
f.flagent = &e;
|
||||
f.pos.x = (float) e.x;
|
||||
|
||||
Reference in New Issue
Block a user