mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Various code improvements
* Camera: Fix division by 0 after view bobbing * Remove ignored constness * Connection: Improve window size range limits
This commit is contained in:
parent
918fbe3ec1
commit
d51d0f3a5a
11 changed files with 40 additions and 47 deletions
|
@ -334,13 +334,13 @@ public:
|
|||
// disconnect client when CSM failed.
|
||||
const std::string &accessDeniedReason() const { return m_access_denied_reason; }
|
||||
|
||||
const bool itemdefReceived() const
|
||||
bool itemdefReceived() const
|
||||
{ return m_itemdef_received; }
|
||||
const bool nodedefReceived() const
|
||||
bool nodedefReceived() const
|
||||
{ return m_nodedef_received; }
|
||||
const bool mediaReceived() const
|
||||
bool mediaReceived() const
|
||||
{ return !m_media_downloader; }
|
||||
const bool activeObjectsReceived() const
|
||||
bool activeObjectsReceived() const
|
||||
{ return m_activeobjects_received; }
|
||||
|
||||
u16 getProtoVersion()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue