mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
Mapster32: demote wall check "corruptions" introduced in r4569 to level 2.
The winding of a loop -- with clockdir() -- is determined by examining the two line segments spanned between the points following a leftmost point of the loop. If the loop contains a leftmost point that belongs to the "right" side (as can happen with sliding door constructions), there's a chance that an outer loop is misclassified. git-svn-id: https://svn.eduke32.com/eduke32@4580 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
77dc743f09
commit
96b3408dbd
2 changed files with 4 additions and 4 deletions
|
@ -8478,9 +8478,9 @@ int32_t clockdir(int32_t wallstart)
|
|||
x2 = POINT2(wall[themin].point2).x;
|
||||
y2 = POINT2(wall[themin].point2).y;
|
||||
|
||||
if (y1 >= y2 && y1 <= y0)
|
||||
if (y2 <= y1 && y1 <= y0)
|
||||
return CLOCKDIR_CW;
|
||||
if (y1 >= y0 && y1 <= y2)
|
||||
if (y0 <= y1 && y1 <= y2)
|
||||
return CLOCKDIR_CCW;
|
||||
|
||||
tempint = (x0-x1)*(y2-y1) - (x2-x1)*(y0-y1);
|
||||
|
|
|
@ -1255,9 +1255,9 @@ int32_t CheckMapCorruption(int32_t printfromlev, uint64_t tryfixing)
|
|||
const int32_t outerloopstart = determine_outer_loop(i);
|
||||
|
||||
if (outerloopstart == -1)
|
||||
CORRUPTCHK_PRINT(4, CORRUPT_SECTOR|i, "SECTOR %d contains no outer (clockwise) loop", i);
|
||||
CORRUPTCHK_PRINT(2, CORRUPT_SECTOR|i, "SECTOR %d contains no outer (clockwise) loop", i);
|
||||
else if (outerloopstart == -2)
|
||||
CORRUPTCHK_PRINT(3, CORRUPT_SECTOR|i, "SECTOR %d contains more than one outer (clockwise) loops", i);
|
||||
CORRUPTCHK_PRINT(2, CORRUPT_SECTOR|i, "SECTOR %d contains more than one outer (clockwise) loops", i);
|
||||
# if CCHK_LOOP_CHECKS >= 2
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue