mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-16 17:35:57 -05:00
fixed bug, when we was able to open panel, when esc menu was open
This commit is contained in:
parent
845abcae0f
commit
3ced5ab99d
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user