mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user