From 36bb3e621fc9458c1a6336a65e30dfa52e2e50c5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 9 Jan 2022 11:53:32 +0100 Subject: [PATCH] - fix typo. --- source/core/rendering/hw_sections.cpp | 8 ++++---- source/core/rendering/hw_sections.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/core/rendering/hw_sections.cpp b/source/core/rendering/hw_sections.cpp index 2deb4594f..b3a5b2a89 100644 --- a/source/core/rendering/hw_sections.cpp +++ b/source/core/rendering/hw_sections.cpp @@ -238,7 +238,7 @@ static void CollectLoops(TArray& sectors) if (ww < first || ww >= last) { Printf("Found wall %d outside sector %d in a loop\n", ww, i); - sectors.Last().bugged = ESEctionFlag::Unclosed; + sectors.Last().bugged = ESectionFlag::Unclosed; bugged.Insert(i, true); break; } @@ -259,7 +259,7 @@ static void CollectLoops(TArray& sectors) Printf(" %d,", walnum); } Printf("\n"); - sectors.Last().bugged = ESEctionFlag::Unclosed; + sectors.Last().bugged = ESectionFlag::Unclosed; break; } thisloop.Push(ww); @@ -367,7 +367,7 @@ static void GroupData(TArray& collect, TArray& builder.sections.Last().bugged = collect[i].bugged; if (last != 1) { - builder.sections.Last().bugged = ESEctionFlag::BadWinding; // Todo: Use flags for bugginess. + builder.sections.Last().bugged = ESectionFlag::BadWinding; // Todo: Use flags for bugginess. //Printf("Sector %d has wrong winding order\n", i); bugged.Insert(i, true); } @@ -505,7 +505,7 @@ static void GroupData(TArray& collect, TArray& Printf("Potential problem at sector %d with %d loops\n", i, sectloops.Size()); bugged.Insert(i, true); builder.sections.Reserve(1); - builder.sections.Last().bugged = ESEctionFlag::Dumped; // this will most likely require use of the node builder to triangulate anyway. + builder.sections.Last().bugged = ESectionFlag::Dumped; // this will most likely require use of the node builder to triangulate anyway. } auto& loop = sectloops[a]; builder.sections.Last().wallcount += loop.Size() - 1; diff --git a/source/core/rendering/hw_sections.h b/source/core/rendering/hw_sections.h index 81a282535..92e8db369 100644 --- a/source/core/rendering/hw_sections.h +++ b/source/core/rendering/hw_sections.h @@ -2,7 +2,7 @@ #include "build.h" -enum ESEctionFlag +enum ESectionFlag { Unclosed = 1, // at least one unclosed loop Dumped = 2, // builder was unable to properly construct, so content may not be usable for triangulator.