mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Use irr_ptr for ClientEnvironment::m_map
This commit is contained in:
parent
e3efaa1733
commit
ecf8c7696a
3 changed files with 9 additions and 9 deletions
|
@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "environment.h"
|
||||
#include "util/numeric.h" // IntervalLimiter
|
||||
#include "activeobjectmgr.h" // client::ActiveObjectMgr
|
||||
#include "irr_ptr.h"
|
||||
#include <set>
|
||||
|
||||
#ifdef SERVER
|
||||
|
@ -66,7 +67,7 @@ typedef std::unordered_map<u16, ClientActiveObject*> ClientActiveObjectMap;
|
|||
class ClientEnvironment : public Environment
|
||||
{
|
||||
public:
|
||||
ClientEnvironment(ClientMap *map, ITextureSource *texturesource, Client *client);
|
||||
ClientEnvironment(irr_ptr<ClientMap> map, ITextureSource *texturesource, Client *client);
|
||||
~ClientEnvironment();
|
||||
|
||||
Map & getMap();
|
||||
|
@ -151,7 +152,7 @@ public:
|
|||
u64 getFrameTimeDelta() const { return m_frame_dtime; }
|
||||
|
||||
private:
|
||||
ClientMap *m_map;
|
||||
irr_ptr<ClientMap> m_map;
|
||||
LocalPlayer *m_local_player = nullptr;
|
||||
ITextureSource *m_texturesource;
|
||||
Client *m_client;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue