From 1ab9159120d5083de90825e2661db1f34c18231a Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 5 Dec 2021 17:50:41 +0100 Subject: [PATCH] fix: make sure overlay state reset when it must --- sonic-radiance.love/game/modules/gui/overlay.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sonic-radiance.love/game/modules/gui/overlay.lua b/sonic-radiance.love/game/modules/gui/overlay.lua index 7cca4c5..a32337d 100644 --- a/sonic-radiance.love/game/modules/gui/overlay.lua +++ b/sonic-radiance.love/game/modules/gui/overlay.lua @@ -44,6 +44,11 @@ function OverlayScreen:new(active, doShowVersion) self.borders = gui.newBorder(424, 30, 8) self.doShowVersion = doShowVersion + if (active == false) then + wasActive = active + hadVersion = self.doShowVersion + end + OverlayScreen.super.new(self, "overlay") local transformStuff = false @@ -80,6 +85,7 @@ end function OverlayScreen:update(dt) wasActive = self.isVisible hadVersion = self.doShowVersion + OverlayScreen.super.update(self, dt) end function OverlayScreen:createElements()