mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01: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:
parent
172e3a8985
commit
556e3a110a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue