diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index a53a642f7..a0f7749e0 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -3296,7 +3296,7 @@ void overheadeditor(void) int32_t prefixarg = 0, tsign; int32_t resetsynctics = 0, lasttick=getticks(), waitdelay=totalclock, lastdraw=getticks(); int32_t olen[2]={0,0}, dragwall[2] = {-1, -1}; - int16_t linehighlight2; + int16_t linehighlight2 = -1; ovh.suckwall = -1; ovh.split = 0; diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index dad067f12..92eeba977 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -17413,7 +17413,7 @@ static void drawscreen_drawsprite(int32_t j, int32_t posxe, int32_t posye, int32 // void draw2dscreen(const vec3_t *pos, int16_t cursectnum, int16_t ange, int32_t zoome, int16_t gride) { - int32_t i, j, x1, y1; + int32_t i, x1, y1; int16_t angofs = m32_sideview ? m32_sideang : 0; int32_t posxe=pos->x, posye=pos->y, posze=pos->z; @@ -17446,7 +17446,7 @@ void draw2dscreen(const vec3_t *pos, int16_t cursectnum, int16_t ange, int32_t z { for (i=0; i>3]&(1<<(i&7))) && (j < 0 || (graywallbitmap[j>>3]&(1<<(j&7))))) graybitmap[i>>3] |= (1<<(i&7)); else @@ -17472,6 +17472,8 @@ void draw2dscreen(const vec3_t *pos, int16_t cursectnum, int16_t ange, int32_t z } else { + int32_t j = 0; + for (i=0; i= 256 || highlightcnt>0) - for (j=0; j>3]&(1<<(j&7)))) @@ -17556,7 +17558,7 @@ void draw2dscreen(const vec3_t *pos, int16_t cursectnum, int16_t ange, int32_t z y1 = mulscale11(sintable[(ange+angofs+2048)&2047],zoome) / 768; i = scalescreeny(x1); - j = scalescreeny(y1); + int32_t j = scalescreeny(y1); drawline16mid(x1,j, -x1,-j, editorcolors[15]); drawline16mid(x1,j, +y1,-i, editorcolors[15]);