This commit is contained in:
neon 2018-09-23 19:30:08 +02:00
parent a66678bce3
commit 60ee341b85

View File

@ -859,10 +859,9 @@ public int Handler_MapSelectMenu(Menu menu, MenuAction action, int param1, int p
} }
bool VIPRestriction = GetMapVIPRestriction(map); bool VIPRestriction = GetMapVIPRestriction(map);
if(VIPRestriction && !(CheckCommandAccess(param1, "sm_tag", ADMFLAG_CUSTOM1) || CheckCommandAccess(param1, "sm_kick", ADMFLAG_KICK))) if(VIPRestriction)
{ {
Format(display, sizeof(display), "%s (%T)", buffer, "VIP Restriction", param1); Format(buffer, sizeof(buffer), "%s (%T)", buffer, "VIP Restriction", param1);
return RedrawMenuItem(display);
} }
int TimeRestriction = GetMapTimeRestriction(map); int TimeRestriction = GetMapTimeRestriction(map);
@ -890,6 +889,11 @@ public int Handler_MapSelectMenu(Menu menu, MenuAction action, int param1, int p
return RedrawMenuItem(display); return RedrawMenuItem(display);
} }
if(VIPRestriction)
{
return RedrawMenuItem(buffer);
}
if(mark && !official) if(mark && !official)
return RedrawMenuItem(buffer); return RedrawMenuItem(buffer);