Fix viewport sign invisibility check

This commit is contained in:
Jonathan G Rennison 2023-09-18 19:34:23 +01:00
parent 68c0fd63dd
commit 57e4929137

View File

@ -1914,7 +1914,7 @@ static void ViewportAddKdtreeSigns(ViewportDrawerDynamic *vdd, DrawPixelInfo *dp
}
/* Do not draw signs nor station names if they are set invisible */
if (IsInvisibilitySet(TO_SIGNS)) return;
if (vdd->IsInvisibilitySet(TO_SIGNS)) return;
for (const auto *si : signs) {
ViewportAddString(vdd, dpi, ZOOM_LVL_OUT_16X, &si->sign,