aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Robbins <kde.psych@gmail.com>2016-05-04 21:21:13 +1000
committerCraig Robbins <kde.psych@gmail.com>2016-05-04 21:31:23 +1000
commitd864c1333303f0f38df1a8106c4b11ecfce529ad (patch)
treeab712d22bafffed6948d10f36ac94c82aa99b6f2
parentb22de6470b9ad97c5d3854ec433a959e4123ce22 (diff)
downloadminetest-d864c1333303f0f38df1a8106c4b11ecfce529ad.tar.gz
minetest-d864c1333303f0f38df1a8106c4b11ecfce529ad.tar.bz2
minetest-d864c1333303f0f38df1a8106c4b11ecfce529ad.zip
Fix holding down F10 (open console) causing GUI to freeze
-rw-r--r--src/guiChatConsole.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp
index ec9d3ffdc..17a1689c7 100644
--- a/src/guiChatConsole.cpp
+++ b/src/guiChatConsole.cpp
@@ -247,7 +247,9 @@ void GUIChatConsole::animate(u32 msec)
s32 goal = m_open ? m_desired_height : 0;
// Set invisible if close animation finished (reset by openConsole)
- if (!m_open && m_height == 0)
+ // This function (animate()) is never called once its visibility becomes false so do not
+ // actually set visible to false before the inhibited period is over
+ if (!m_open && m_height == 0 && m_open_inhibited == 0)
IGUIElement::setVisible(false);
if (m_height != goal)