corruption checker: catch TROR-nextwalls in non-extended sectors. These

can be caused by copying map parts from one map to another (or a new one).
The copying system is slightly broken right now....

git-svn-id: https://svn.eduke32.com/eduke32@2133 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-11-26 14:12:30 +00:00
parent e76341f4f3
commit 1402a6d70b

View file

@ -11640,7 +11640,6 @@ int32_t CheckMapCorruption(int32_t printfromlev, uint64_t tryfixing)
ynextwallok = 0; ynextwallok = 0;
} }
if (!ynextwallok)
{ {
int16_t bunchnum = yax_getbunch(i, cf); int16_t bunchnum = yax_getbunch(i, cf);
int32_t onumct = numcorruptthings; int32_t onumct = numcorruptthings;
@ -11648,16 +11647,18 @@ int32_t CheckMapCorruption(int32_t printfromlev, uint64_t tryfixing)
if (bunchnum < 0 || bunchnum >= numyaxbunches) if (bunchnum < 0 || bunchnum >= numyaxbunches)
{ {
CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL %d has %s=%d, " CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL %d has %s=%d, "
"but its bunchnum(%d)=%d is invalid\n", "but its %s bunchnum=%d is invalid\n",
j, YUPDOWNWALL[cf], ynw, cf, bunchnum); j, YUPDOWNWALL[cf], ynw,
cf==YAX_CEILING? "ceiling":"floor", bunchnum);
} }
else if (onumct < MAXCORRUPTTHINGS) else if (!ynextwallok && onumct < MAXCORRUPTTHINGS)
{ {
if ((tryfixing & (1ull<<onumct)) || 4>=printfromlev) if ((tryfixing & (1ull<<onumct)) || 4>=printfromlev)
correct_yax_nextwall(j, bunchnum, cf, tryfixing!=0ull); correct_yax_nextwall(j, bunchnum, cf, tryfixing!=0ull);
} }
} }
else
if (ynextwallok)
{ {
int32_t onumct = numcorruptthings; int32_t onumct = numcorruptthings;