From 556e3a110aec8c4e6a157296898b78e68d7bfe62 Mon Sep 17 00:00:00 2001 From: AllyTally Date: Thu, 26 Jan 2023 15:52:29 -0400 Subject: [PATCH] Fix small bug with map being off in custom levels The pixel border around the map fits to map size normally. However, when the map is off, it's always the dimensions of the full size map, and the border didn't reflect that, so if the custom minimap was off, and the map wasn't the full size, it wouldn't fit correctly. This bug was introduced in PR #898. --- desktop_version/src/Render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index 8aa3ecd3..cee3cadb 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -2277,7 +2277,7 @@ static MapRenderData getmaprenderdata() static void rendermap(void) { #ifndef NO_CUSTOM_LEVELS - if (map.custommode) + if (map.custommode && map.customshowmm) { graphics.drawpixeltextbox(35 + map.custommmxoff, 16 + map.custommmyoff, map.custommmxsize + 10, map.custommmysize + 10, 65, 185, 207); graphics.drawpartimage(graphics.minimap_mounted ? 1 : 12, 40 + map.custommmxoff, 21 + map.custommmyoff, map.custommmxsize, map.custommmysize);