diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index 1d1dde85a..4b8c19a58 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -10747,7 +10747,7 @@ static void AlignWalls_(int32_t tilenum, int32_t z0, int32_t z1, int32_t doxpann if (doxpanning) wall[w1_pan].xpanning = (uint8_t)((wall[w0_pan].xpanning + (wall[w0_rep].xrepeat<<3))%tilesiz[tilenum].x); - for (n=picsiz[tilenum]>>4; (1<>4; (1<>(n+3))); diff --git a/polymer/eduke32/build/src/cache1d.c b/polymer/eduke32/build/src/cache1d.c index 1b01492fe..6deeedc5d 100644 --- a/polymer/eduke32/build/src/cache1d.c +++ b/polymer/eduke32/build/src/cache1d.c @@ -411,7 +411,7 @@ int32_t addsearchpath_user(const char *p, int32_t user) srch->path = (char *)Xmalloc(srch->pathlen + 1); Bstrcpy(srch->path, path); - for (s=srch->path; *s; s++); + for (s=srch->path; *s; s++) { } s--; if (spath || toupperlookup[*s] != '/') @@ -442,7 +442,7 @@ int32_t removesearchpath(const char *p) if (path[Bstrlen(path)-1] == '\\') path[Bstrlen(path)-1] = 0; - for (s=path; *s; s++); + for (s=path; *s; s++) { } s--; if (s= x1b2) { - for (; xb2[b2f] < x1b1; b2f = bunchp2[b2f]); + for (; xb2[b2f] < x1b1; b2f = bunchp2[b2f]) { } return wallfront(b1f, b2f); } - for (; xb2[b1f] < x1b2; b1f = bunchp2[b1f]); + for (; xb2[b1f] < x1b2; b1f = bunchp2[b1f]) { } return wallfront(b1f, b2f); } diff --git a/polymer/eduke32/build/src/mdsprite.c b/polymer/eduke32/build/src/mdsprite.c index afd2f7265..30a1757f9 100644 --- a/polymer/eduke32/build/src/mdsprite.c +++ b/polymer/eduke32/build/src/mdsprite.c @@ -621,8 +621,8 @@ static int32_t daskinloader(int32_t filh, intptr_t *fptr, int32_t *bpl, int32_t if (!glinfo.texnpot) { - for (xsiz=1; xsiz= x1b2) { - for (; dxb2[b2f]<=x1b1; b2f=bunchp2[b2f]); + for (; dxb2[b2f]<=x1b1; b2f=bunchp2[b2f]) { } return wallfront(b1f, b2f); } - for (; dxb2[b1f]<=x1b2; b1f=bunchp2[b1f]); + for (; dxb2[b1f]<=x1b2; b1f=bunchp2[b1f]) { } return wallfront(b1f, b2f); } @@ -3513,7 +3513,7 @@ void polymost_scansector(int32_t sectnum) for (int z=bunchfrst; z=0; zz=bunchp2[zz]); + for (zz=bunchfirst[z]; bunchp2[zz]>=0; zz=bunchp2[zz]) { } bunchlast[z] = zz; } } diff --git a/polymer/eduke32/build/src/scriptfile.c b/polymer/eduke32/build/src/scriptfile.c index a867d02ff..a28370cef 100644 --- a/polymer/eduke32/build/src/scriptfile.c +++ b/polymer/eduke32/build/src/scriptfile.c @@ -192,7 +192,7 @@ int32_t scriptfile_getlinum(const scriptfile *sf, const char *ptr) ind = ((intptr_t)ptr) - ((intptr_t)sf->textbuf); - for (stp=1; stp+stplinenum; stp+=stp); //stp = highest power of 2 less than sf->linenum + for (stp=1; stp+stplinenum; stp+=stp) { } //stp = highest power of 2 less than sf->linenum for (i=0; stp; stp>>=1) if ((i+stp < sf->linenum) && (sf->lineoffs[i+stp] < ind)) i += stp; return(i+1); //i = index to highest lineoffs which is less than ind; convert to 1-based line numbers @@ -337,7 +337,7 @@ static char *getsymbtabspace(int32_t reqd) if (symbtablength + reqd > symbtaballoclength) { - for (i=max(symbtaballoclength,SYMBTABSTARTSIZE); symbtablength+reqd>i; i<<=1); + for (i=max(symbtaballoclength,SYMBTABSTARTSIZE); symbtablength+reqd>i; i<<=1) { } np = (char *)Xrealloc(symbtab, i); symbtab = np; symbtaballoclength = i; } diff --git a/polymer/eduke32/source/m32def.c b/polymer/eduke32/source/m32def.c index efb1aa9d1..6fd9de8ee 100644 --- a/polymer/eduke32/source/m32def.c +++ b/polymer/eduke32/source/m32def.c @@ -3741,7 +3741,7 @@ void C_Compile(const char *filenameortext, int32_t isfilename) Bmemcpy(&cs, &cs_default, sizeof(compilerstate_t)); - while (C_ParseCommand() == 0); + while (C_ParseCommand() == 0) { } // flushlogwindow = 1;