1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-17 01:58:29 +02:00

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.
This commit is contained in:
AllyTally 2023-01-26 15:52:29 -04:00 committed by Misa
parent 172e3a8985
commit 556e3a110a

View File

@ -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);