1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 17:24:47 +01:00

Close #14903. Use map_is_edge

This commit is contained in:
duncanspumpkin
2021-06-15 07:49:57 +01:00
committed by Gymnasiast
parent 517935e580
commit ae6657dcdc
5 changed files with 5 additions and 6 deletions

View File

@@ -1579,7 +1579,7 @@ static void map_window_set_pixels(rct_window* w)
for (int32_t i = 0; i < MAXIMUM_MAP_SIZE_TECHNICAL; i++)
{
if (x > 0 && y > 0 && x < gMapSizeUnits && y < gMapSizeUnits)
if (!map_is_edge({ x, y }))
{
switch (w->selected_tab)
{