portal_number = 0;
nextdir = dir;
- for(;;)
+ for(0;;)
{
dir = nextdir;
traceline(p, p + 65536 * dir, TRUE, porto);
}
// find the CURRENT line
- for(;;)
+ for(0;;)
{
tokenize_console(bufstr_get(bgmscriptbuf, e.bgmscriptline));
if(stof(argv(1)) >= bgmtime || argv(0) != e.bgmscript)
tm = teams.sort_next;
if (tm)
{
- for(; tm.sort_next; tm = tm.sort_next)
+ for(0; tm.sort_next; tm = tm.sort_next)
{
if(!tm.team_size || tm.team == NUM_SPECTATOR)
continue;
entity Sort_Get(entity sort, float i)
{
- for(; sort.sort_next && i > 0; --i)
+ for(0; sort.sort_next && i > 0; --i)
sort = sort.sort_next;
return sort;
}
mapMins = '0 0 0';
mapMaxs = '0 0 0';
- for(;;)
+ for(0;;)
{
if (!((s = fgets(fh))))
break;
print("Map ", pFilename, " references not existing config file ", s, "\n");
else
{
- for(;;)
+ for(0;;)
{
if (!((s = fgets(fh))))
break;
{
n = tokenize_console(cvar_string("g_cdtracks_remaplist"));
s = strcat(" ", cvar_string("g_cdtracks_dontusebydefault"), " ");
- for(;;)
+ for(0;;)
{
i = floor(random() * n);
if(strstrofs(s, strcat(" ", argv(i), " "), 0) < 0)
}
_MapInfo_Map_Reset();
- for(;;)
+ for(0;;)
{
if (!((s = fgets(fh))))
break;
string selected, remaining = args;
float sel_num = 0;
- for(;(remaining != "");)
+ for(0;(remaining != "");)
{
selected = car(remaining); remaining = cdr(remaining);
queue_end.FindConnectedComponent_processing = 1;
// for each queued item:
- for(; queue_start; queue_start = queue_start.fld)
+ for(0; 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(;;)
+ for(0;;)
{
--i;
if (i < 0)
{
float i = me.selectedItem;
float a = me.getItemHeight(me, i);
- for(;;)
+ for(0;;)
{
++i;
if (i >= me.nItems)
float y;
i = me.getItemAtPos(me, me.scrollPos);
y = me.getItemStart(me, i) - me.scrollPos;
- for(; i < me.nItems && y < 1; ++i)
+ for(0; 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(;;)
+ for(0;;)
{
i = me.controlledTextbox.cursorPos;
if(i >= 2)
cp1 = cp2 = findchain(classname, "onslaught_controlpoint");
// Filter control points
- for (; cp2; cp2 = cp2.chain)
+ for(0; cp2; cp2 = cp2.chain)
{
cp2.wpcost = c = 0;
cp2.wpconsidered = FALSE;
// We'll consider only the best case
bestvalue = 99999999999;
cp = world;
- for (; cp1; cp1 = cp1.chain)
+ for(0; cp1; cp1 = cp1.chain)
{
if (!cp1.wpconsidered)
continue;
// Movement loop
yaw = vectoyaw(move);
move = end - org;
- for (;;)
+ for(0;;)
{
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(; org_z < end_z + self.maxs_z; org_z += stepdist)
+ for(0; org_z < end_z + self.maxs_z; org_z += stepdist)
{
if(autocvar_bot_debug_tracewalk)
debugnode(org);
if(e == world)
return FALSE;
- for (;;)
+ for(0;;)
{
// add the spawnfunc_waypoint to the path
navigation_pushroute(e);
if(cmdstr == "sound")
{
// find the LAST word
- for(;;)
+ for(0;;)
{
sp = strstrofs(parm, " ", 0);
if(sp < 0)
tmin = 0;
tmax = 1;
- for(;;)
+ for(0;;)
{
if(tmax - tmin < 0.001)
{
if((targets) && (admin_message))
{
- for(;targets;)
+ for(0;targets;)
{
t = car(targets); targets = cdr(targets);
// lets see if the target(s) even actually exist.
if((targets) && (destination))
{
- for(;targets;)
+ for(0;targets;)
{
t = car(targets); targets = cdr(targets);
// build a list of the players in a random order
FOR_EACH_PLAYER(tmp_player)
{
- for(;;)
+ for(0;;)
{
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(;;)
+ for(0;;)
{
org = world.mins;
delta = world.maxs - world.mins;
// how much do we need to back off?
safe = 1;
unsafe = 0;
- for(;;)
+ for(0;;)
{
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(;;)
+ for(0;;)
{
q = p + normalize(end - p) * (dq + dqf);
if(q == q0)
p = strstrofs(cmdrestriction, ";", 0); // find first semicolon
- for(;;)
+ for(0;;)
{
// we know that at any time, startpos <= argc - minargs
// so this means: argc-minargs >= startpos >= argc, thus
float c;
c = 0;
- for(;;)
+ for(0;;)
{
if(pos * dir >= v2 * dir)
{
cleared = 0;
y = TET_LINES;
- for(;;)
+ for(0;;)
{
ln = GetLine(y);
if(strstrofs(ln, "0", 0) < 0)
vector o, v;
float i;
- for(;;)
+ for(0;;)
{
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 (;;)
+ for(0;;)
{
if (e.classname == "body")
e = e.enemy;
cur = initialize_entity_first;
prev = world;
- for (;;)
+ for(0;;)
{
if (!cur || cur.initialize_entity_order > order)
{
ad = findchain(classname, "func_assault_destructible");
- for (; ad; ad = ad.chain)
+ for(0; ad; ad = ad.chain)
{
if (ad.target == "")
continue;
}
else
{
- for(;;)
+ for(0;;)
{
file_read = fgets(file_get);
if(file_read == "")
sk = p.scorekeeper;
s = strcat(s, p.netname);
- for(;;)
+ for(0;;)
{
i = strlennocol(s) - NAMEWIDTH;
if(i > 0)
WarpZone_trace_forent = self;
- for (;;)
+ for(0;;)
{
// 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(;;)
+ for(0;;)
{
if(--i < 1)
{
}
WarpZone_MakeAllSolid();
i = 16;
- for(;;)
+ for(0;;)
{
if(--i < 1)
{
if(IS_NOT_A_CLIENT(e))
{
if(warpzone_warpzones_exist)
- for(; (e = nextent(e)); )
+ for(0; (e = nextent(e)); )
WarpZone_StoreProjectileData(e);
break;
}