From a7985058ff431811e96887777dc49b71ab6fac3f Mon Sep 17 00:00:00 2001 From: Benjamin Funke Date: Sun, 29 Sep 2024 13:18:07 +0200 Subject: [PATCH] fix cicle typo in DebugOverlay --- SpaceCadetPinball/DebugOverlay.cpp | 8 ++++---- SpaceCadetPinball/DebugOverlay.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SpaceCadetPinball/DebugOverlay.cpp b/SpaceCadetPinball/DebugOverlay.cpp index cdee9b3..ba2f74b 100644 --- a/SpaceCadetPinball/DebugOverlay.cpp +++ b/SpaceCadetPinball/DebugOverlay.cpp @@ -295,7 +295,7 @@ void DebugOverlay::DrawComponentAabb() } } -void DebugOverlay::DrawCicleType(circle_type& circle) +void DebugOverlay::DrawCircleType(circle_type& circle) { vector2 linePt{ circle.Center.X + sqrt(circle.RadiusSq), circle.Center.Y }; auto pt1 = proj::xform_to_2d(circle.Center); @@ -340,7 +340,7 @@ void DebugOverlay::DrawEdge(TEdgeSegment* edge) auto circle = dynamic_cast(edge); if (circle) { - DrawCicleType(circle->Circle); + DrawCircleType(circle->Circle); return; } @@ -352,7 +352,7 @@ void DebugOverlay::DrawEdge(TEdgeSegment* edge) DrawLineType(flip->LineA); DrawLineType(flip->LineB); - DrawCicleType(flip->circlebase); - DrawCicleType(flip->circleT1); + DrawCircleType(flip->circlebase); + DrawCircleType(flip->circleT1); } } diff --git a/SpaceCadetPinball/DebugOverlay.h b/SpaceCadetPinball/DebugOverlay.h index af01689..2bb009b 100644 --- a/SpaceCadetPinball/DebugOverlay.h +++ b/SpaceCadetPinball/DebugOverlay.h @@ -13,7 +13,7 @@ public: private: static gdrv_bitmap8* dbScreen; - static void DrawCicleType(circle_type& circle); + static void DrawCircleType(circle_type& circle); static void DrawLineType(line_type& line); static void DrawEdge(TEdgeSegment* edge); static void DrawBoxGrid();