mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Speedup attachement handling by replacing vector search by direct array access and secondary child lookup vector
This commit is contained in:
@@ -492,7 +492,7 @@ public:
|
||||
// Get event from queue. CEE_NONE is returned if queue is empty.
|
||||
ClientEnvEvent getClientEvent();
|
||||
|
||||
std::vector<core::vector2d<int> > attachment_list; // X is child ID, Y is parent ID
|
||||
u16 m_attachements[USHRT_MAX];
|
||||
|
||||
std::list<std::string> getPlayerNames()
|
||||
{ return m_player_names; }
|
||||
|
Reference in New Issue
Block a user