}
// find the CURRENT line
- for(0;;)
+ for (;;)
{
tokenize_console(bufstr_get(bgmscriptbuf, e.bgmscriptline));
if(stof(argv(1)) >= bgmtime || argv(0) != e.bgmscript)
tm = teams.sort_next;
if (tm)
{
- for(0; tm.sort_next; tm = tm.sort_next)
+ for (; tm.sort_next; tm = tm.sort_next)
{
if(!tm.team_size || tm.team == NUM_SPECTATOR)
continue;
entity Sort_Get(entity sort, float i)
{
- for(0; sort.sort_next && i > 0; --i)
+ for (; sort.sort_next && i > 0; --i)
sort = sort.sort_next;
return sort;
}
portal_number = 0;
nextdir = dir;
- for(0;;)
+ for (;;)
{
dir = nextdir;
traceline(p, p + 65536 * dir, true, porto);
mapMins = '0 0 0';
mapMaxs = '0 0 0';
- for(0;;)
+ for (;;)
{
if (!((s = fgets(fh))))
break;
print("Map ", pFilename, " references not existing config file ", s, "\n");
else
{
- for(0;;)
+ for (;;)
{
if (!((s = fgets(fh))))
break;
{
n = tokenize_console(cvar_string("g_cdtracks_remaplist"));
s = strcat(" ", cvar_string("g_cdtracks_dontusebydefault"), " ");
- for(0;;)
+ for (;;)
{
i = floor(random() * n);
if(strstrofs(s, strcat(" ", argv(i), " "), 0) < 0)
}
_MapInfo_Map_Reset();
- for(0;;)
+ for (;;)
{
if (!((s = fgets(fh))))
break;
string selected, remaining = args;
float sel_num = 0;
- for(0;(remaining != "");)
+ for (;(remaining != "");)
{
selected = car(remaining); remaining = cdr(remaining);
queue_end.FindConnectedComponent_processing = 1;
// for each queued item:
- for(0; queue_start; queue_start = queue_start.fld)
+ for (; queue_start; queue_start = queue_start.fld)
{
// find all neighbors of queue_start
entity t;
{
float i = me.selectedItem;
float a = me.getItemHeight(me, i);
- for(0;;)
+ for (;;)
{
--i;
if (i < 0)
{
float i = me.selectedItem;
float a = me.getItemHeight(me, i);
- for(0;;)
+ for (;;)
{
++i;
if (i >= me.nItems)
float y;
i = me.getItemAtPos(me, me.scrollPos);
y = me.getItemStart(me, i) - me.scrollPos;
- for(0; i < me.nItems && y < 1; ++i)
+ for (; i < me.nItems && y < 1; ++i)
{
draw_shift = boxToGlobal(eY * y, oldshift, oldscale);
vector relSize = eX * (1 - me.controlWidth) + eY * me.getItemHeight(me, i);
float XonoticColorpicker_mouseDrag(entity me, vector coords)
{
float i, carets;
- for(0;;)
+ for (;;)
{
i = me.controlledTextbox.cursorPos;
if(i >= 2)
cp1 = cp2 = findchain(classname, "onslaught_controlpoint");
// Filter control points
- for(0; cp2; cp2 = cp2.chain)
+ for (; cp2; cp2 = cp2.chain)
{
cp2.wpcost = c = 0;
cp2.wpconsidered = false;
// We'll consider only the best case
bestvalue = 99999999999;
cp = world;
- for(0; cp1; cp1 = cp1.chain)
+ for (; cp1; cp1 = cp1.chain)
{
if (!cp1.wpconsidered)
continue;
// Movement loop
yaw = vectoyaw(move);
move = end - org;
- for(0;;)
+ for (;;)
{
if (boxesoverlap(end, end, org + m1 + '-1 -1 -1', org + m2 + '1 1 1'))
{
{
swimming = true;
org = trace_endpos - normalize(org - trace_endpos) * stepdist;
- for(0; org.z < end.z + self.maxs.z; org.z += stepdist)
+ for (; org.z < end.z + self.maxs.z; org.z += stepdist)
{
if(autocvar_bot_debug_tracewalk)
debugnode(org);
if(e == world)
return false;
- for(0;;)
+ for (;;)
{
// add the spawnfunc_waypoint to the path
navigation_pushroute(e);
if(cmdstr == "sound")
{
// find the LAST word
- for(0;;)
+ for (;;)
{
sp = strstrofs(parm, " ", 0);
if(sp < 0)
tmin = 0;
tmax = 1;
- for(0;;)
+ for (;;)
{
if(tmax - tmin < 0.001)
{
if((targets) && (admin_message))
{
- for(0;targets;)
+ for (;targets;)
{
t = car(targets); targets = cdr(targets);
// lets see if the target(s) even actually exist.
if((targets) && (destination))
{
- for(0;targets;)
+ for (;targets;)
{
t = car(targets); targets = cdr(targets);
// build a list of the players in a random order
FOR_EACH_PLAYER(tmp_player)
{
- for(0;;)
+ for (;;)
{
i = bound(1, floor(random() * maxclients) + 1, maxclients);
float hitcount = 0;
print("TEST CASE. If this returns the runaway loop counter error, possibly everything is oaky.\n");
float worst_endpos_bug = 0;
- for(0;;)
+ for (;;)
{
org = world.mins;
delta = world.maxs - world.mins;
// how much do we need to back off?
safe = 1;
unsafe = 0;
- for(0;;)
+ for (;;)
{
pos = p * (1 - (safe + unsafe) * 0.5) + start * ((safe + unsafe) * 0.5);
tracebox(pos, PL_MIN, PL_MAX, pos, MOVE_NOMONSTERS, world);
q0 = p;
dq = 0;
dqf = 1;
- for(0;;)
+ for (;;)
{
q = p + normalize(end - p) * (dq + dqf);
if(q == q0)
p = strstrofs(cmdrestriction, ";", 0); // find first semicolon
- for(0;;)
+ for (;;)
{
// we know that at any time, startpos <= argc - minargs
// so this means: argc-minargs >= startpos >= argc, thus
float c;
c = 0;
- for(0;;)
+ for (;;)
{
if(pos * dir >= v2 * dir)
{
cleared = 0;
y = TET_LINES;
- for(0;;)
+ for (;;)
{
ln = GetLine(y);
if(strstrofs(ln, "0", 0) < 0)
vector o, v;
float i;
- for(0;;)
+ for (;;)
{
o = world.mins;
o.x += random() * (world.maxs.x - world.mins.x);
float sound_allowed(float _dest, entity e)
{
// sounds from world may always pass
- for(0;;)
+ for (;;)
{
if (e.classname == "body")
e = e.enemy;
cur = initialize_entity_first;
prev = world;
- for(0;;)
+ for (;;)
{
if (!cur || cur.initialize_entity_order > order)
{
ad = findchain(classname, "func_assault_destructible");
- for(0; ad; ad = ad.chain)
+ for (; ad; ad = ad.chain)
{
if (ad.target == "")
continue;
}
else
{
- for(0;;)
+ for (;;)
{
file_read = fgets(file_get);
if(file_read == "")
sk = p.scorekeeper;
s = strcat(s, p.netname);
- for(0;;)
+ for (;;)
{
i = strlennocol(s) - NAMEWIDTH;
if(i > 0)
WarpZone_trace_forent = self;
- for(0;;)
+ for (;;)
{
// TODO also show effect while tracing
WarpZone_TraceBox_ThroughZone(start, '0 0 0', '0 0 0', end, false, WarpZone_trace_forent, world, fireBullet_trace_callback);
sol = -1;
frac = 0;
i = 16;
- for(0;;)
+ for (;;)
{
if(--i < 1)
{
}
WarpZone_MakeAllSolid();
i = 16;
- for(0;;)
+ for (;;)
{
if(--i < 1)
{
if(IS_NOT_A_CLIENT(e))
{
if(warpzone_warpzones_exist)
- for(0; (e = nextent(e)); )
+ for (; (e = nextent(e)); )
WarpZone_StoreProjectileData(e);
break;
}