]> git.lizzy.rs Git - minetest.git/commitdiff
client.h: Add missing const's
authorANAND <ClobberXD@gmail.com>
Fri, 13 Sep 2019 06:04:06 +0000 (11:34 +0530)
committersfan5 <sfan5@live.de>
Sat, 14 Sep 2019 18:16:55 +0000 (20:16 +0200)
src/client/client.h

index 934175ff27b53d6460ea815094e6bb766d6c07f9..dee60b6d59b0357306968124b49a6631d482cea9 100644 (file)
@@ -333,11 +333,11 @@ class Client : public con::PeerHandler, public InventoryManager, public IGameDef
        // disconnect client when CSM failed.
        const std::string &accessDeniedReason() const { return m_access_denied_reason; }
 
-       bool itemdefReceived()
+       const bool itemdefReceived() const
        { return m_itemdef_received; }
-       bool nodedefReceived()
+       const bool nodedefReceived() const
        { return m_nodedef_received; }
-       bool mediaReceived()
+       const bool mediaReceived() const
        { return !m_media_downloader; }
        const bool activeObjectsReceived() const
        { return m_activeobjects_received; }