From 41ae45d96bb2392fc1cda842d553f027f8b55447 Mon Sep 17 00:00:00 2001 From: qndel Date: Sat, 21 Oct 2023 13:27:39 +0200 Subject: [PATCH] fix part of vertical door getting overdrawn --- Source/automap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/automap.cpp b/Source/automap.cpp index aedeaa85c..6eea32c48 100644 --- a/Source/automap.cpp +++ b/Source/automap.cpp @@ -672,6 +672,7 @@ void DrawHorizontal(const Surface &out, Point center, AutomapTile tile, AutomapT l = AmLineLength::FullTile; // shorten line to avoid overdraw DrawDiamond(out, center, colorDim); FixHorizontalDoor(out, center, nwTile, colorBright); + FixVerticalDoor(out, center, neTile, colorBright); } // Shorten line to avoid overdraw if (IsAnyOf(leveltype, DTYPE_CAVES, DTYPE_NEST) @@ -709,6 +710,7 @@ void DrawVertical(const Surface &out, Point center, AutomapTile tile, AutomapTil l = AmLineLength::FullTile; // shorten line to avoid overdraw DrawDiamond(out, center, colorDim); FixVerticalDoor(out, center, nwTile, colorBright); + FixVerticalDoor(out, center, neTile, colorBright); } // Shorten line to avoid overdraw and adjust offset to match if (IsAnyOf(leveltype, DTYPE_CAVES, DTYPE_NEST)