1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-12 07:16:57 -05:00

fixed bug, when we was able to open panel, when esc menu was open

This commit is contained in:
M. Sz 2021-01-13 13:24:28 +01:00
parent 845abcae0f
commit 3ced5ab99d

View File

@ -573,7 +573,7 @@ func (g *GameControls) clearScreen() {
} }
func (g *GameControls) openLeftPanel(panel Panel) { func (g *GameControls) openLeftPanel(panel Panel) {
if !g.HelpOverlay.IsOpen() { if !g.HelpOverlay.IsOpen() && !g.escapeMenu.IsOpen() {
isOpen := panel.IsOpen() isOpen := panel.IsOpen()
g.clearLeftScreenSide() g.clearLeftScreenSide()
@ -587,7 +587,7 @@ func (g *GameControls) openLeftPanel(panel Panel) {
} }
func (g *GameControls) openRightPanel(panel Panel) { func (g *GameControls) openRightPanel(panel Panel) {
if !g.HelpOverlay.IsOpen() { if !g.HelpOverlay.IsOpen() && !g.escapeMenu.IsOpen() {
isOpen := panel.IsOpen() isOpen := panel.IsOpen()
g.clearRightScreenSide() g.clearRightScreenSide()