diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2021-09-27 17:45:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 17:45:44 +0200 |
commit | d51d0f3a5a60679436bf7d4e1980f3a82f229848 (patch) | |
tree | e6d15df599dd04df76b8493a4cdcaf6b550c4cce /src/client/gameui.h | |
parent | 918fbe3ec1667c65a320f1f6b432449f104d8e26 (diff) | |
download | minetest-d51d0f3a5a60679436bf7d4e1980f3a82f229848.tar.gz minetest-d51d0f3a5a60679436bf7d4e1980f3a82f229848.tar.bz2 minetest-d51d0f3a5a60679436bf7d4e1980f3a82f229848.zip |
Various code improvements
* Camera: Fix division by 0 after view bobbing
* Remove ignored constness
* Connection: Improve window size range limits
Diffstat (limited to 'src/client/gameui.h')
-rw-r--r-- | src/client/gameui.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/gameui.h b/src/client/gameui.h index 2eb2488e6..3f31f1b57 100644 --- a/src/client/gameui.h +++ b/src/client/gameui.h @@ -84,7 +84,7 @@ public: void showTranslatedStatusText(const char *str); inline void clearStatusText() { m_statustext.clear(); } - const bool isChatVisible() + bool isChatVisible() { return m_flags.show_chat && m_recent_chat_count != 0 && m_profiler_current_page == 0; } |