diff options
author | sapier <Sapier at GMX dot net> | 2014-06-08 12:49:06 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-06-23 00:13:41 +0200 |
commit | 35ec3855f689cf2c6b1504a5813b7c3d9697ae14 (patch) | |
tree | 508d9d8ecd913c0dfe8442b66819e1e58aa7bbf6 /src/environment.h | |
parent | 56bf867874bda0a5fc4d34415984241a52083b3b (diff) | |
download | minetest-35ec3855f689cf2c6b1504a5813b7c3d9697ae14.tar.gz minetest-35ec3855f689cf2c6b1504a5813b7c3d9697ae14.tar.bz2 minetest-35ec3855f689cf2c6b1504a5813b7c3d9697ae14.zip |
Speedup attachement handling by replacing vector search by direct array access and secondary child lookup vector
Diffstat (limited to 'src/environment.h')
-rw-r--r-- | src/environment.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/environment.h b/src/environment.h index 5062b9c37..cecc9133a 100644 --- a/src/environment.h +++ b/src/environment.h @@ -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; } |