core/menusystem: only draw cursor menu if the menu is visible

This commit is contained in:
Kazhnuz 2019-02-15 18:32:27 +01:00
parent d30f28322a
commit 831531b3fa

View file

@ -84,7 +84,9 @@ function MenuSystem:draw(dt) -- On dessine les entitées
end
if self.menus[self.focusedMenu] ~= nil then
self.menus[self.focusedMenu]:drawCursor()
if (self.menus[self.focusedMenu].isVisible) then
self.menus[self.focusedMenu]:drawCursor()
end
end
end