- better debug output.

This commit is contained in:
Christoph Oelckers 2021-12-10 21:59:31 +01:00
parent a255e90c96
commit 449362dcb3
2 changed files with 8 additions and 4 deletions

View file

@ -410,7 +410,7 @@ static void GroupData(TArray<loopcollect>& collect, TArray<sectionbuildsector>&
} }
else else
{ {
Printf("Nested loops found in sector %d\n", i); Printf("Nested loops found in sector %d, comparing loops starting at %d and %d\n", i, sectloops[a][0], sectloops[b][0]);
bugged.Insert(i, true); bugged.Insert(i, true);
if (inside[a] != -2) if (inside[a] != -2)
{ {
@ -586,8 +586,13 @@ void hw_CreateSections2()
for (auto& wall : loop.walls) for (auto& wall : loop.walls)
{ {
Printf(PRINT_LOG, "\t\t\tWall %d, (%d, %d) -> (%d, %d)", ::wall.IndexOf(wall->wall), wall->v1->x / 16, wall->v1->y / -16, wall->v2->x / 16, wall->v2->y / -16); Printf(PRINT_LOG, "\t\t\tWall %d, (%d, %d) -> (%d, %d)", ::wall.IndexOf(wall->wall), wall->v1->x / 16, wall->v1->y / -16, wall->v2->x / 16, wall->v2->y / -16);
if (wall->wall->nextwall == -1) Printf(PRINT_LOG, "\n"); if (wall->wall->nextwall == -1) Printf(PRINT_LOG, "one-sided\n");
else Printf(PRINT_LOG, "next wall = %d, next sector = %d\n", wall->wall->nextwall, wall->wall->nextsector); else
{
Printf(PRINT_LOG, " next wall = %d, next sector = %d", wall->wall->nextwall, wall->wall->nextsector);
if (wall->wall->nextWall()->nextWall() != wall->wall) Printf(PRINT_LOG, " unreachable");
Printf(PRINT_LOG, "\n");
}
} }
} }
} }

View file

@ -105,7 +105,6 @@ class UVCalculator
public: public:
// Moved in from pragmas.h
UVCalculator(sectortype* sec, int plane, FGameTexture* tx, const FVector2& off) UVCalculator(sectortype* sec, int plane, FGameTexture* tx, const FVector2& off)
{ {
float xpan, ypan; float xpan, ypan;