mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
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:
parent
e76341f4f3
commit
1402a6d70b
1 changed files with 6 additions and 5 deletions
|
@ -11640,7 +11640,6 @@ int32_t CheckMapCorruption(int32_t printfromlev, uint64_t tryfixing)
|
|||
ynextwallok = 0;
|
||||
}
|
||||
|
||||
if (!ynextwallok)
|
||||
{
|
||||
int16_t bunchnum = yax_getbunch(i, cf);
|
||||
int32_t onumct = numcorruptthings;
|
||||
|
@ -11648,16 +11647,18 @@ int32_t CheckMapCorruption(int32_t printfromlev, uint64_t tryfixing)
|
|||
if (bunchnum < 0 || bunchnum >= numyaxbunches)
|
||||
{
|
||||
CORRUPTCHK_PRINT(4, CORRUPT_WALL|j, "WALL %d has %s=%d, "
|
||||
"but its bunchnum(%d)=%d is invalid\n",
|
||||
j, YUPDOWNWALL[cf], ynw, cf, bunchnum);
|
||||
"but its %s bunchnum=%d is invalid\n",
|
||||
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)
|
||||
correct_yax_nextwall(j, bunchnum, cf, tryfixing!=0ull);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
if (ynextwallok)
|
||||
{
|
||||
int32_t onumct = numcorruptthings;
|
||||
|
||||
|
|
Loading…
Reference in a new issue