mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-06 02:05:30 +01:00
Break include chains and tidy (#16640)
Co-authored-by: cx384 <cx384@proton.me>
This commit is contained in:
@@ -8,11 +8,10 @@
|
||||
|
||||
#include "network/address.h"
|
||||
#include "network/networkprotocol.h" // session_t
|
||||
#include "porting.h"
|
||||
#include "threading/mutex_auto_lock.h"
|
||||
#include "clientdynamicinfo.h"
|
||||
#include "constants.h" // PEER_ID_INEXISTENT
|
||||
|
||||
#include <list>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <set>
|
||||
@@ -310,7 +309,7 @@ public:
|
||||
{ serialization_version = m_pending_serialization_version; }
|
||||
|
||||
/* get uptime */
|
||||
u64 uptime() const { return porting::getTimeS() - m_connection_time; }
|
||||
u64 uptime() const;
|
||||
|
||||
/* set version information */
|
||||
void setVersionInfo(u8 major, u8 minor, u8 patch, const std::string &full);
|
||||
@@ -423,7 +422,7 @@ private:
|
||||
/*
|
||||
time this client was created
|
||||
*/
|
||||
const u64 m_connection_time = porting::getTimeS();
|
||||
const u64 m_connection_time;
|
||||
};
|
||||
|
||||
typedef std::unordered_map<u16, RemoteClient*> RemoteClientMap;
|
||||
|
||||
Reference in New Issue
Block a user