From 681bd640ed2dedd4f22e1970eafe3532e8e9c77a Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 2 Sep 2022 16:05:03 +1000 Subject: [PATCH] - Make `drawlinergb()` use `twod->AddThickLine()` for when `am_linethickness` is greater than 1, not 2. --- source/core/automap.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/core/automap.cpp b/source/core/automap.cpp index 2726db062..409329ff9 100644 --- a/source/core/automap.cpp +++ b/source/core/automap.cpp @@ -294,12 +294,14 @@ void MarkSectorSeen(sectortype* sec) void drawlinergb(const double x1, const double y1, const double x2, const double y2, PalEntry p) { - if (am_linethickness >= 2) { - twod->AddThickLine(x1, y1, x2, y2, am_linethickness, p, uint8_t(am_linealpha * 255)); - } else { - // Use more efficient thin line drawing routine. + if (am_linethickness <= 1) + { twod->AddLine(x1, y1, x2, y2, &viewport3d, p, uint8_t(am_linealpha * 255)); } + else + { + twod->AddThickLine(x1, y1, x2, y2, am_linethickness, p, uint8_t(am_linealpha * 255)); + } } //---------------------------------------------------------------------------