Now that the background and border colour is the same, only draw unselected border when a tile is being drawn.

This commit is contained in:
toaster 2022-12-11 20:34:52 +00:00
parent ae43e3a6ce
commit 7f45ae4212

View file

@ -4569,13 +4569,16 @@ static void M_DrawChallengeTile(INT16 i, INT16 j, INT32 x, INT32 y, boolean hili
drawborder: drawborder:
if (!hili) if (!hili)
{ {
work = 16 * ((ref && ref->majorunlock) ? 2 : 1); if (ref != NULL)
// Horizontal {
V_DrawFill(x, y , work, 1, challengesbordercolor); work = 16 * (ref->majorunlock ? 2 : 1);
V_DrawFill(x, y + work-1, work, 1, challengesbordercolor); // Horizontal
// Vertical V_DrawFill(x, y , work, 1, challengesbordercolor);
V_DrawFill(x , y+1, 1, work-2, challengesbordercolor); V_DrawFill(x, y + work-1, work, 1, challengesbordercolor);
V_DrawFill(x + work-1, y+1, 1, work-2, challengesbordercolor); // Vertical
V_DrawFill(x , y+1, 1, work-2, challengesbordercolor);
V_DrawFill(x + work-1, y+1, 1, work-2, challengesbordercolor);
}
return; return;
} }