In the editor, when rescaling the texture after dragging a wall-point, also

traverse the TROR neighbors.

git-svn-id: https://svn.eduke32.com/eduke32@2027 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-09-15 19:31:44 +00:00
parent 7582b86237
commit 9b70a2efbf

View file

@ -2540,7 +2540,7 @@ void overheadeditor(void)
int32_t prefixarg = 0;
int32_t resetsynctics = 0, lasttick=getticks(), waitdelay=totalclock, lastdraw=getticks();
int32_t tsign;
int32_t olen[2]={0,0}, nlen[2]={0,0}, dragwall[2] = {-1, -1};
int32_t olen[2]={0,0}, /*nlen[2]={0,0},*/ dragwall[2] = {-1, -1};
m32_setkeyfilter(1);
@ -4162,16 +4162,19 @@ end_autoredwall:
if (dragwall[i] < 0)
break;
nlen[i] = wallength(dragwall[i]);
if (olen[i] != 0 && nlen[i] != 0)
if (olen[i] != 0)
{
int32_t nw = wall[dragwall[i]].nextwall;
#ifndef YAX_ENABLE
j = dragwall[i];
#else
int32_t cf;
for (YAX_ITER_WALLS(dragwall[i], j, cf))
#endif
{
int32_t nw = wall[j].nextwall;
j = divscale10(nlen[i], olen[i]);
k = getlenbyrep(olen[i], wall[dragwall[i]].xrepeat);
fixxrepeat(dragwall[i], k);
k = getlenbyrep(olen[i], wall[j].xrepeat);
fixxrepeat(j, k);
if (nw >= 0)
{
k = getlenbyrep(olen[i], wall[nw].xrepeat);
@ -4180,6 +4183,7 @@ end_autoredwall:
}
}
}
}
else if ((pointhighlight&0xc000) == 16384)
{
dax = sprite[pointhighlight&16383].x;